Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Rename OwnerBuilder to OwnerAttributes

  • Loading branch information...
commit 8ebfc7b559e1ff4ea2dba1c86f79b8c3c46f0d18 1 parent 18fc275
@mattyoho authored
View
2  basic_assumption.gemspec
@@ -31,7 +31,7 @@ Gem::Specification.new do |s|
"lib/basic_assumption/default_assumption/base.rb",
"lib/basic_assumption/default_assumption/class_resolver.rb",
"lib/basic_assumption/default_assumption/name.rb",
- "lib/basic_assumption/default_assumption/owner_builder.rb",
+ "lib/basic_assumption/default_assumption/owner_attributes.rb",
"lib/basic_assumption/default_assumption/rails.rb",
"lib/basic_assumption/rails.rb",
"lib/basic_assumption/rspec.rb",
View
2  ...ic_assumption/default_assumption/owner_builder.rb → ...assumption/default_assumption/owner_attributes.rb
@@ -1,6 +1,6 @@
module BasicAssumption
module DefaultAssumption
- class OwnerBuilder
+ class OwnerAttributes
attr_reader :controller, :owner_context, :owner_method
def initialize(owner_method_or_context, controller)
View
4 lib/basic_assumption/default_assumption/rails.rb
@@ -1,7 +1,7 @@
require 'basic_assumption/default_assumption/action'
require 'basic_assumption/default_assumption/class_resolver'
require 'basic_assumption/default_assumption/name'
-require 'basic_assumption/default_assumption/owner_builder'
+require 'basic_assumption/default_assumption/owner_attributes'
module BasicAssumption
module DefaultAssumption
@@ -166,7 +166,7 @@ def resource_attributes
def owner_attributes
@owner_attributes ||= if context[:owner]
- OwnerBuilder.new(context[:owner], context[:controller]).attributes
+ OwnerAttributes.new(context[:owner], context[:controller]).attributes
else
{}
end
Please sign in to comment.
Something went wrong with that request. Please try again.