Skip to content
This repository
Browse code

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

…=> false)
  • Loading branch information...
commit 4b7dad2df3fc252acdb3fd8362370daac16540e4 1 parent 77e1a99
Jaime Iniesta jaimeiniesta authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  activerecord/lib/active_record/validations.rb
2  activerecord/lib/active_record/validations.rb
@@ -37,7 +37,7 @@ def create!(attributes = nil, &block)
37 37 end
38 38 end
39 39
40   - # The validation process on save can be skipped by passing false. The regular Base#save method is
  40 + # The validation process on save can be skipped by passing :validate => false. The regular Base#save method is
41 41 # replaced with this when the validations module is mixed in, which it is by default.
42 42 def save(options={})
43 43 perform_validations(options) ? super : false

0 comments on commit 4b7dad2

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