Skip to content
This repository
Browse code

Rename OwnerBuilder to OwnerAttributes

  • Loading branch information...
commit 8ebfc7b559e1ff4ea2dba1c86f79b8c3c46f0d18 1 parent 18fc275
Matt Yoho authored
2  basic_assumption.gemspec
@@ -31,7 +31,7 @@ Gem::Specification.new do |s|
31 31 "lib/basic_assumption/default_assumption/base.rb",
32 32 "lib/basic_assumption/default_assumption/class_resolver.rb",
33 33 "lib/basic_assumption/default_assumption/name.rb",
34   - "lib/basic_assumption/default_assumption/owner_builder.rb",
  34 + "lib/basic_assumption/default_assumption/owner_attributes.rb",
35 35 "lib/basic_assumption/default_assumption/rails.rb",
36 36 "lib/basic_assumption/rails.rb",
37 37 "lib/basic_assumption/rspec.rb",
2  ...ic_assumption/default_assumption/owner_builder.rb → ...assumption/default_assumption/owner_attributes.rb
... ... @@ -1,6 +1,6 @@
1 1 module BasicAssumption
2 2 module DefaultAssumption
3   - class OwnerBuilder
  3 + class OwnerAttributes
4 4 attr_reader :controller, :owner_context, :owner_method
5 5
6 6 def initialize(owner_method_or_context, controller)
4 lib/basic_assumption/default_assumption/rails.rb
... ... @@ -1,7 +1,7 @@
1 1 require 'basic_assumption/default_assumption/action'
2 2 require 'basic_assumption/default_assumption/class_resolver'
3 3 require 'basic_assumption/default_assumption/name'
4   -require 'basic_assumption/default_assumption/owner_builder'
  4 +require 'basic_assumption/default_assumption/owner_attributes'
5 5
6 6 module BasicAssumption
7 7 module DefaultAssumption
@@ -166,7 +166,7 @@ def resource_attributes
166 166
167 167 def owner_attributes
168 168 @owner_attributes ||= if context[:owner]
169   - OwnerBuilder.new(context[:owner], context[:controller]).attributes
  169 + OwnerAttributes.new(context[:owner], context[:controller]).attributes
170 170 else
171 171 {}
172 172 end

0 comments on commit 8ebfc7b

Please sign in to comment.
Something went wrong with that request. Please try again.