Class: Role
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Role
- Defined in:
- app/models/role.rb
Instance Method Summary collapse
Instance Method Details
#activate ⇒ Object
13 14 15 |
# File 'app/models/role.rb', line 13 def activate self.update_attribute('active', !self.active) end |