Module: Hyrax::Controller
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/controllers/concerns/hyrax/controller.rb
Instance Method Summary collapse
-
#create_work_presenter ⇒ Object
A presenter for selecting a work type to create this is needed here because the selector is in the header on every page.
-
#default_url_options ⇒ Object
Ensure that the locale choice is persistent across requests.
-
#user_root_path ⇒ Object
Provide a place for Devise to send the user to after signing in.
Instance Method Details
#create_work_presenter ⇒ Object
A presenter for selecting a work type to create this is needed here because the selector is in the header on every page
22 23 24 |
# File 'app/controllers/concerns/hyrax/controller.rb', line 22 def create_work_presenter @create_work_presenter ||= create_work_presenter_class.new(current_user) end |
#default_url_options ⇒ Object
Ensure that the locale choice is persistent across requests
27 28 29 |
# File 'app/controllers/concerns/hyrax/controller.rb', line 27 def super.merge(locale: I18n.locale) end |
#user_root_path ⇒ Object
Provide a place for Devise to send the user to after signing in
16 17 18 |
# File 'app/controllers/concerns/hyrax/controller.rb', line 16 def user_root_path hyrax.dashboard_path end |