Module: AuthN::Activation::Model
- Defined in:
- lib/authn/activation/model.rb
Instance Method Summary collapse
Instance Method Details
#activate(token) ⇒ Object
4 5 6 |
# File 'lib/authn/activation/model.rb', line 4 def activate(token) activate_instance if token_matches(token) && can_activate? end |
#activate! ⇒ Object
8 9 10 |
# File 'lib/authn/activation/model.rb', line 8 def activate! activate_instance end |
#activated? ⇒ Boolean
12 13 14 |
# File 'lib/authn/activation/model.rb', line 12 def activated? send_activation_state end |
#deactivate! ⇒ Object
16 17 18 |
# File 'lib/authn/activation/model.rb', line 16 def deactivate! activate_instance false end |