diff options
author | Bogdan Gusiev <agresso@gmail.com> | 2015-01-23 13:57:34 +0200 |
---|---|---|
committer | Bogdan Gusiev <agresso@gmail.com> | 2015-01-23 23:43:22 +0200 |
commit | 2606fb339797a99c50e531105fc92071cef3db01 (patch) | |
tree | 9de175ae320de5487adb4d32bb29c3894529805b /activerecord/test/cases/nested_attributes_test.rb | |
parent | 139c232b075da940cdf1042dcaad4c3b514908c9 (diff) | |
download | rails-2606fb339797a99c50e531105fc92071cef3db01.tar.gz rails-2606fb339797a99c50e531105fc92071cef3db01.tar.bz2 rails-2606fb339797a99c50e531105fc92071cef3db01.zip |
Extracted `ActiveRecord::AttributeAssignment` to `ActiveModel::AttributesAssignment`
Allows to use it for any object as an includable module.
Diffstat (limited to 'activerecord/test/cases/nested_attributes_test.rb')
-rw-r--r-- | activerecord/test/cases/nested_attributes_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/nested_attributes_test.rb b/activerecord/test/cases/nested_attributes_test.rb index 5c7e8a65d2..8bc42b8890 100644 --- a/activerecord/test/cases/nested_attributes_test.rb +++ b/activerecord/test/cases/nested_attributes_test.rb @@ -672,7 +672,7 @@ module NestedAttributesOnACollectionAssociationTests end def test_should_not_assign_destroy_key_to_a_record - assert_nothing_raised ActiveRecord::UnknownAttributeError do + assert_nothing_raised ActiveModel::AttributeAssignment::UnknownAttributeError do @pirate.send(association_setter, { 'foo' => { '_destroy' => '0' }}) end end |