diff options
author | kennyj <kennyj@gmail.com> | 2013-09-28 12:23:58 +0900 |
---|---|---|
committer | kennyj <kennyj@gmail.com> | 2013-09-28 12:26:23 +0900 |
commit | 8e814a0ac0768816974d2bfd68d33d931592751e (patch) | |
tree | e293b073839899f8b2e639b7f524605515f41bf4 /activerecord/lib/active_record/nested_attributes.rb | |
parent | 3e0a60e4e2316ee696bdcf1c115582f8f450ad07 (diff) | |
download | rails-8e814a0ac0768816974d2bfd68d33d931592751e.tar.gz rails-8e814a0ac0768816974d2bfd68d33d931592751e.tar.bz2 rails-8e814a0ac0768816974d2bfd68d33d931592751e.zip |
Renamed generated_feature_methods to generated_association_methods.
Diffstat (limited to 'activerecord/lib/active_record/nested_attributes.rb')
-rw-r--r-- | activerecord/lib/active_record/nested_attributes.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/nested_attributes.rb b/activerecord/lib/active_record/nested_attributes.rb index df28451bb7..9d92e747d4 100644 --- a/activerecord/lib/active_record/nested_attributes.rb +++ b/activerecord/lib/active_record/nested_attributes.rb @@ -335,7 +335,7 @@ module ActiveRecord # the helper methods defined below. Makes it seem like the nested # associations are just regular associations. def generate_association_writer(association_name, type) - generated_feature_methods.module_eval <<-eoruby, __FILE__, __LINE__ + 1 + generated_association_methods.module_eval <<-eoruby, __FILE__, __LINE__ + 1 if method_defined?(:#{association_name}_attributes=) remove_method(:#{association_name}_attributes=) end |