Class: CamaleonCms::User
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- CamaleonCms::User
show all
- Includes:
- UserMethods
- Defined in:
- app/models/camaleon_cms/user.rb
Class Method Summary
collapse
#admin?, #assign_site, #client?, #created, #fullname, #generate_token, #get_role, #posts, #send_confirm_email, #send_password_reset, #sites, #updated
Class Method Details
.by_email(email) ⇒ Object
10
11
12
|
# File 'app/models/camaleon_cms/user.rb', line 10
def self.by_email(email)
where(['lower(email) = ?', email.to_s.downcase])
end
|
.by_username(username) ⇒ Object
14
15
16
|
# File 'app/models/camaleon_cms/user.rb', line 14
def self.by_username(username)
where(['lower(username) = ?', username.to_s.downcase])
end
|