1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

ActiveRecord#save(false) is now deprecated, now it is save(:validate => false)

This commit is contained in:
Jaime Iniesta 2011-01-18 00:35:07 +01:00
parent 77e1a99970
commit 4b7dad2df3

View file

@ -37,7 +37,7 @@ module ActiveRecord
end
end
# The validation process on save can be skipped by passing false. The regular Base#save method is
# The validation process on save can be skipped by passing :validate => false. The regular Base#save method is
# replaced with this when the validations module is mixed in, which it is by default.
def save(options={})
perform_validations(options) ? super : false