Class: Auth::ConfirmationsController
- Inherits:
-
BaseController
- Object
- DeviseController
- BaseController
- Auth::ConfirmationsController
- Defined in:
- app/controllers/auth/confirmations_controller.rb
Instance Method Summary collapse
-
#show ⇒ Object
GET /resource/confirmation?confirmation_token=abcdef.
Methods inherited from BaseController
Instance Method Details
#show ⇒ Object
GET /resource/confirmation?confirmation_token=abcdef
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'app/controllers/auth/confirmations_controller.rb', line 10 def show self.resource = resource_class.confirm_by_token(params[:confirmation_token]) if resource&.errors&.empty? (:notice, :confirmed) if # sign_in(resource_name, resource) (resource) do redirect_to after_confirmation_path_for(resource_name, resource) end else (resource ? resource.errors : nil, status: :unprocessable_entity) do render :failure end end end |