aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/treasure.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/models/treasure.rb')
-rw-r--r--activerecord/test/models/treasure.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/test/models/treasure.rb b/activerecord/test/models/treasure.rb
index 97c690c110..2a98e74f2c 100644
--- a/activerecord/test/models/treasure.rb
+++ b/activerecord/test/models/treasure.rb
@@ -3,4 +3,6 @@ class Treasure < ActiveRecord::Base
belongs_to :looter, :polymorphic => true
has_many :price_estimates, :as => :estimate_of
+
+ accepts_nested_attributes_for :looter
end