Module: Spotlight::User::ClassMethods

Defined in:
app/models/concerns/spotlight/user.rb

Overview

Class-level user mixins

Instance Method Summary collapse

Instance Method Details

#find_by_user_key(key) ⇒ Object



41
42
43
# File 'app/models/concerns/spotlight/user.rb', line 41

def find_by_user_key(key)
  find_by email: key
end