diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-07-22 18:14:48 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-07-22 18:14:48 -0700 |
commit | e20dd73df42d63b206d221e2258cc6dc7b1e6068 (patch) | |
tree | 72771252ff86601bc2ba9f616b3c35424d00d9d8 | |
parent | 0aa6872dc55fcffb892ef066f869b6f9046b6943 (diff) | |
download | rails-e20dd73df42d63b206d221e2258cc6dc7b1e6068.tar.gz rails-e20dd73df42d63b206d221e2258cc6dc7b1e6068.tar.bz2 rails-e20dd73df42d63b206d221e2258cc6dc7b1e6068.zip |
remove unnecessary reader
-rw-r--r-- | activerecord/lib/active_record/associations/builder/association.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/activerecord/lib/active_record/associations/builder/association.rb b/activerecord/lib/active_record/associations/builder/association.rb index 41126f6f00..3e1f699f58 100644 --- a/activerecord/lib/active_record/associations/builder/association.rb +++ b/activerecord/lib/active_record/associations/builder/association.rb @@ -20,7 +20,7 @@ module ActiveRecord::Associations::Builder self.valid_options = [:class_name, :foreign_key, :validate] self.extensions = [] - attr_reader :model, :name, :scope, :options, :reflection + attr_reader :model, :name, :scope, :options def self.build(*args, &block) new(*args, &block).build @@ -54,11 +54,11 @@ module ActiveRecord::Associations::Builder validate_options define_accessors configure_dependency if options[:dependent] - @reflection = model.create_reflection(macro, name, scope, options, model) + reflection = model.create_reflection(macro, name, scope, options, model) Association.extensions.each do |extension| - extension.build @model, @reflection + extension.build @model, reflection end - @reflection + reflection end def macro |