aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/owner.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/models/owner.rb')
-rw-r--r--activerecord/test/models/owner.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/test/models/owner.rb b/activerecord/test/models/owner.rb
index 2e3a9a3681..cedb774b10 100644
--- a/activerecord/test/models/owner.rb
+++ b/activerecord/test/models/owner.rb
@@ -17,6 +17,8 @@ class Owner < ActiveRecord::Base
after_commit :execute_blocks
+ accepts_nested_attributes_for :pets, allow_destroy: true
+
def blocks
@blocks ||= []
end