diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-03-16 11:26:19 -0700 |
---|---|---|
committer | wycats <wycats@gmail.com> | 2010-03-16 11:48:34 -0700 |
commit | 8c3e46c093023f9430c9772e81d58c9ee24de229 (patch) | |
tree | a5ebc7ccef49aaba8ca73f97eea7053225143144 /activerecord/lib/active_record/nested_attributes.rb | |
parent | c61ed70b00c93bdf42c7538a334f07e58c60bc4e (diff) | |
download | rails-8c3e46c093023f9430c9772e81d58c9ee24de229.tar.gz rails-8c3e46c093023f9430c9772e81d58c9ee24de229.tar.bz2 rails-8c3e46c093023f9430c9772e81d58c9ee24de229.zip |
clean up more warnings, remove unnecessary methods, fix eval line numbers. [#4193 state:resolved]
Signed-off-by: wycats <wycats@gmail.com>
Diffstat (limited to 'activerecord/lib/active_record/nested_attributes.rb')
-rw-r--r-- | activerecord/lib/active_record/nested_attributes.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/nested_attributes.rb b/activerecord/lib/active_record/nested_attributes.rb index d8fae495e7..bc491c367f 100644 --- a/activerecord/lib/active_record/nested_attributes.rb +++ b/activerecord/lib/active_record/nested_attributes.rb @@ -243,11 +243,11 @@ module ActiveRecord # def pirate_attributes=(attributes) # assign_nested_attributes_for_one_to_one_association(:pirate, attributes) # end - class_eval %{ + class_eval <<-eoruby, __FILE__, __LINE__ + 1 def #{association_name}_attributes=(attributes) assign_nested_attributes_for_#{type}_association(:#{association_name}, attributes) end - }, __FILE__, __LINE__ + eoruby else raise ArgumentError, "No association found for name `#{association_name}'. Has it been defined yet?" end |