Class: DeviseToken::ConfirmationsController
- Inherits:
-
ApplicationController
- Object
- DeviseController
- ApplicationController
- DeviseToken::ConfirmationsController
- Defined in:
- app/controllers/devise_token/confirmations_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
#resource_data, #resource_errors
Instance Method Details
#show ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'app/controllers/devise_token/confirmations_controller.rb', line 3 def show @resource = resource_class.confirm_by_token(params[:confirmation_token]) if @resource && @resource.id sign_in(@resource) @resource.save! yield @resource if block_given? else raise ActionController::RoutingError.new('Not Found') end end |