Skip to content

Commit

Permalink
Merge pull request #18145 from georgemillo/patch-2
Browse files Browse the repository at this point in the history
Add information about "allow_destroy" requiring an ID. [ci skip]
  • Loading branch information
sgrif committed Dec 23, 2014
2 parents a054269 + 7476b90 commit b994c0e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions activerecord/lib/active_record/nested_attributes.rb
Expand Up @@ -81,6 +81,9 @@ class TooManyRecords < ActiveRecordError
#
# 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:
Expand Down

0 comments on commit b994c0e

Please sign in to comment.