lib/devise/models/authenticatable.rb in devise-2.0.5 vs lib/devise/models/authenticatable.rb in devise-2.0.6
- old
+ new
@@ -153,10 +153,10 @@
# Overwrite to add customized conditions, create a join, or maybe use a
# namedscope to filter records while authenticating.
# Example:
#
# def self.find_for_authentication(tainted_conditions)
- # find_first_by_auth_conditions(tainted_conditions, active: true)
+ # find_first_by_auth_conditions(tainted_conditions, :active => true)
# end
#
# Finally, notice that Devise also queries for users in other scenarios
# besides authentication, for example when retrieving an user to send
# an e-mail for password reset. In such cases, find_for_authentication