aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/nested_attributes.rb
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2009-11-08 16:03:15 -0600
committerJoshua Peek <josh@joshpeek.com>2009-11-08 16:03:15 -0600
commitc10f4ae01d91d1afc90b21d4bba51e59ae9a0625 (patch)
tree67c0428c4a31452227bca75ba835a642bd01fd41 /activerecord/lib/active_record/nested_attributes.rb
parenta595abff211eee97d75c51c085cfdc821b1edb46 (diff)
parentf125a34501e21b1e0da2b80d149df7a739482804 (diff)
downloadrails-c10f4ae01d91d1afc90b21d4bba51e59ae9a0625.tar.gz
rails-c10f4ae01d91d1afc90b21d4bba51e59ae9a0625.tar.bz2
rails-c10f4ae01d91d1afc90b21d4bba51e59ae9a0625.zip
Merge remote branch 'Fingertips/master'
Diffstat (limited to 'activerecord/lib/active_record/nested_attributes.rb')
-rw-r--r--activerecord/lib/active_record/nested_attributes.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/nested_attributes.rb b/activerecord/lib/active_record/nested_attributes.rb
index edcf547e01..ca3110a374 100644
--- a/activerecord/lib/active_record/nested_attributes.rb
+++ b/activerecord/lib/active_record/nested_attributes.rb
@@ -250,6 +250,8 @@ module ActiveRecord
assign_nested_attributes_for_#{type}_association(:#{association_name}, attributes)
end
}, __FILE__, __LINE__
+
+ add_autosave_association_callbacks(reflection)
else
raise ArgumentError, "No association found for name `#{association_name}'. Has it been defined yet?"
end