Class: AdminUsers::SessionsController
- Inherits:
-
Devise::SessionsController
- Object
- Devise::SessionsController
- AdminUsers::SessionsController
- Defined in:
- lib/generators/infold/templates/install/app/controllers/admin/admin_users/sessions_controller.rb
Instance Method Summary collapse
-
#after_sign_in_path_for(resources) ⇒ Object
If you have extra params to permit, append them to the sanitizer.
- #after_sign_out_path_for(resource) ⇒ Object
Instance Method Details
#after_sign_in_path_for(resources) ⇒ Object
If you have extra params to permit, append them to the sanitizer. def configure_sign_in_params
devise_parameter_sanitizer.permit(:sign_in, keys: [:attribute])
end
31 32 33 |
# File 'lib/generators/infold/templates/install/app/controllers/admin/admin_users/sessions_controller.rb', line 31 def after_sign_in_path_for(resources) admin_root_path end |
#after_sign_out_path_for(resource) ⇒ Object
35 36 37 |
# File 'lib/generators/infold/templates/install/app/controllers/admin/admin_users/sessions_controller.rb', line 35 def after_sign_out_path_for(resource) new_admin_user_session_path end |