Class: EspaceMembre::User

Inherits:
Record
  • Object
show all
Defined in:
lib/espace_membre/user.rb

Constant Summary collapse

DOMAINES =
%w[
  Coaching
  Autre
  Produit
  Intraprenariat
  Data
  Déploiement
  Animation
  Design
  Développement
  Support
]

Class Method Summary collapse

Class Method Details

.identify_email!(email) ⇒ Object



38
39
40
41
42
# File 'lib/espace_membre/user.rb', line 38

def self.identify_email!(email)
  User.find_by!(primary_email: email)
rescue ActiveRecord::RecordNotFound
  User.find_by!(secondary_email: email)
end