Class: Junebug::Models::User
- Inherits:
-
Base
- Object
- Base
- Junebug::Models::User
- Defined in:
- lib/junebug/models.rb
Constant Summary collapse
- ROLE_USER =
0
- ROLE_ADMIN =
10
Instance Method Summary collapse
Instance Method Details
#password=(text) ⇒ Object
22 23 24 |
# File 'lib/junebug/models.rb', line 22 def password=(text) write_attribute(:password, (text ? text.strip : text) ) end |
#username=(text) ⇒ Object
18 19 20 |
# File 'lib/junebug/models.rb', line 18 def username=(text) write_attribute(:username, (text ? text.strip.downcase : text) ) end |