Class: Devise::MagicLinksController

Inherits:
DeviseController
  • Object
show all
Defined in:
app/controllers/devise/magic_links_controller.rb

Instance Method Summary collapse

Instance Method Details

#show {|resource| ... } ⇒ Object

GET /resource/magic_link

Yields:

  • (resource)


7
8
9
10
11
12
13
# File 'app/controllers/devise/magic_links_controller.rb', line 7

def show
  self.resource = warden.authenticate!(auth_options)
  set_flash_message!(:notice, :signed_in)
  (resource_name, resource)
  yield resource if block_given?
  redirect_to (resource)
end