diff options
author | Sean Griffin <sean@seantheprogrammer.com> | 2014-12-23 07:17:01 -0700 |
---|---|---|
committer | Sean Griffin <sean@seantheprogrammer.com> | 2014-12-23 07:17:01 -0700 |
commit | b994c0e03d8068f9c6a8e68cf003014a2e2c4bf4 (patch) | |
tree | 1e647545469035d53cc065c72a522e489e8039ff /activerecord/lib | |
parent | a054269ff8a3589784e25729359f71d0838b5d3e (diff) | |
parent | 7476b90e164ec62aa4719fa8398fb8464c0e453e (diff) | |
download | rails-b994c0e03d8068f9c6a8e68cf003014a2e2c4bf4.tar.gz rails-b994c0e03d8068f9c6a8e68cf003014a2e2c4bf4.tar.bz2 rails-b994c0e03d8068f9c6a8e68cf003014a2e2c4bf4.zip |
Merge pull request #18145 from georgemillo/patch-2
Add information about "allow_destroy" requiring an ID. [ci skip]
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/nested_attributes.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/nested_attributes.rb b/activerecord/lib/active_record/nested_attributes.rb index 8a2a06f2ca..0f9b52f69f 100644 --- a/activerecord/lib/active_record/nested_attributes.rb +++ b/activerecord/lib/active_record/nested_attributes.rb @@ -81,6 +81,9 @@ module ActiveRecord # # Note that the model will _not_ be destroyed until the parent is saved. # + # Also note that the model will not be destroyed unless you also specify + # its id in the updated hash. + # # === One-to-many # # Consider a member that has a number of posts: |