Guest User

Untitled

a guest
May 23rd, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. def self.find_for_database_authentication(conditions)
  2. debugger
  3. value = conditions[authentication_keys.first]
  4. conditions = ["username = ? or email = ?", value, value]
  5. User.where(conditions).first
  6. end
Add Comment
Please, Sign In to add comment