Module: Shield::Ohm::EmailPassword::Fetch

Defined in:
lib/shield/contrib/ohm/email_password.rb

Instance Method Summary collapse

Instance Method Details

#fetch(email) ⇒ Object



17
18
19
20
21
# File 'lib/shield/contrib/ohm/email_password.rb', line 17

def fetch(email)
  return if email.to_s.empty?

  find(:email => email.downcase.strip).first
end