Module: Sufia::Controller
- Extended by:
- ActiveSupport::Concern
- Included in:
- CurationConcerns::FileSetsController, WorksControllerBehavior
- Defined in:
- app/controllers/concerns/sufia/controller.rb
Instance Method Summary collapse
-
#after_sign_in_path_for(_resource) ⇒ Object
Override Devise method to redirect to dashboard after signing in.
- #current_ability ⇒ Object
Instance Method Details
#after_sign_in_path_for(_resource) ⇒ Object
Override Devise method to redirect to dashboard after signing in
14 15 16 |
# File 'app/controllers/concerns/sufia/controller.rb', line 14 def after_sign_in_path_for(_resource) sufia.dashboard_index_path end |
#current_ability ⇒ Object
9 10 11 |
# File 'app/controllers/concerns/sufia/controller.rb', line 9 def current_ability user_signed_in? ? current_user.ability : super end |