Class: ConfirmationsController
- Inherits:
-
Devise::ConfirmationsController
- Object
- Devise::ConfirmationsController
- ConfirmationsController
- Defined in:
- lib/generators/happy_seed/devise_confirmable/templates/app/controllers/confirmations_controller.rb
Instance Method Summary collapse
-
#show ⇒ Object
Signin automatically if they come in through the link.
Instance Method Details
#show ⇒ Object
Signin automatically if they come in through the link
3 4 5 6 7 8 9 |
# File 'lib/generators/happy_seed/devise_confirmable/templates/app/controllers/confirmations_controller.rb', line 3 def show super do if resource.errors.empty? sign_in(resource) end end end |