Class: CamaleonCms::User
- Inherits:
-
CamaleonRecord
- Object
- ActiveRecord::Base
- CamaleonRecord
- CamaleonCms::User
- Includes:
- UserMethods
- Defined in:
- app/models/camaleon_cms/user.rb
Class Method Summary collapse
Methods included from UserMethods
#admin?, #assign_site, #client?, #created, #fullname, #generate_token, #get_role, #posts, #send_confirm_email, #send_password_reset, #sites, #updated
Methods inherited from CamaleonRecord
#cama_build_cache_key, #cama_fetch_cache, #cama_get_cache, #cama_remove_cache, #cama_set_cache
Class Method Details
.find_by_email(email) ⇒ Object
14 15 16 |
# File 'app/models/camaleon_cms/user.rb', line 14 def self.find_by_email(email) where(['lower(email) = ?', email.to_s.downcase]).take end |
.find_by_username(username) ⇒ Object
18 19 20 |
# File 'app/models/camaleon_cms/user.rb', line 18 def self.find_by_username(username) where(['lower(username) = ?', username.to_s.downcase]).take end |