提交 348c0ec7 编写于 作者: E Emilio Tagua

Should save without validation if autosave is enabled.

上级 02fc6fbc
......@@ -332,9 +332,11 @@ def save_collection_association(reflection)
else
association.send(:insert_record, record)
end
raise ActiveRecord::Rollback if saved == false
elsif autosave
saved = record.save(:validate => false)
end
raise ActiveRecord::Rollback if saved == false
end
rescue
records.each {|x| IdentityMap.remove(x) } if IdentityMap.enabled?
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册