Skip to content

Commit

Permalink
Added check for Rails 3 in password#save and passed :validate => fals…
Browse files Browse the repository at this point in the history
…e to stop deprecation warnings
  • Loading branch information
james2m authored and jjb committed Jan 7, 2011
1 parent 66ed795 commit a2737de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/authlogic/acts_as_authentic/password.rb
Expand Up @@ -314,7 +314,7 @@ def transition_password?(index, encryptor, crypted, check_against_database)

def transition_password(attempted_password)
self.password = attempted_password
save(false)
save(Rails::VERSION::MAJOR >= 3 ? {:validate => false} : false)
end

def require_password?
Expand Down

0 comments on commit a2737de

Please sign in to comment.