Module: ActiveAuthentication::Model::Magiclinkable
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/active_authentication/model/magiclinkable.rb
Instance Method Summary collapse
Instance Method Details
#send_magic_link ⇒ Object
10 11 12 13 |
# File 'lib/active_authentication/model/magiclinkable.rb', line 10 def send_magic_link token = generate_token_for :magic_link ActiveAuthentication::Mailer.with(token: token, user: self).magic_link.deliver end |