Skip to content
Browse files

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

…=> false)
  • Loading branch information...
1 parent 77e1a99 commit 4b7dad2df3fc252acdb3fd8362370daac16540e4 @jaimeiniesta jaimeiniesta committed Jan 18, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/validations.rb
View
2 activerecord/lib/active_record/validations.rb
@@ -37,7 +37,7 @@ def create!(attributes = nil, &block)
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

0 comments on commit 4b7dad2

Please sign in to comment.
Something went wrong with that request. Please try again.