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:
parent
77e1a99970
commit
4b7dad2df3
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue