Class: Devise::MagicLinksController
- Inherits:
-
DeviseController
- Object
- DeviseController
- Devise::MagicLinksController
- Defined in:
- app/controllers/devise/magic_links_controller.rb
Instance Method Summary collapse
-
#show {|resource| ... } ⇒ Object
GET /resource/magic_link.
Instance Method Details
#show {|resource| ... } ⇒ Object
GET /resource/magic_link
7 8 9 10 11 12 13 |
# File 'app/controllers/devise/magic_links_controller.rb', line 7 def show self.resource = warden.authenticate!() (:notice, :signed_in) sign_in(resource_name, resource) yield resource if block_given? redirect_to after_sign_in_path_for(resource) end |