Module: Authorization::StatefulRoles::StatefulRolesInstanceMethods
- Defined in:
- lib/branston/vendor/plugins/restful_authentication/lib/authorization/stateful_roles.rb
Overview
class methods
Instance Method Summary collapse
- #do_activate ⇒ Object
- #do_delete ⇒ Object
-
#recently_activated? ⇒ Boolean
Returns true if the user has just been activated.
Instance Method Details
#do_activate ⇒ Object
55 56 57 58 59 |
# File 'lib/branston/vendor/plugins/restful_authentication/lib/authorization/stateful_roles.rb', line 55 def do_activate @activated = true self.activated_at = Time.now.utc self.deleted_at = self.activation_code = nil end |
#do_delete ⇒ Object
51 52 53 |
# File 'lib/branston/vendor/plugins/restful_authentication/lib/authorization/stateful_roles.rb', line 51 def do_delete self.deleted_at = Time.now.utc end |
#recently_activated? ⇒ Boolean
Returns true if the user has just been activated.
48 49 50 |
# File 'lib/branston/vendor/plugins/restful_authentication/lib/authorization/stateful_roles.rb', line 48 def recently_activated? @activated end |