Module: Hyrax::Controller

Extended by:
ActiveSupport::Concern
Defined in:
app/controllers/concerns/hyrax/controller.rb

Overview

Note:

private methods within this module are normally still “public API”, since they are meant to be called by inheriting controllers.

A mixin for Hyrax support methods. This is meant to be included in `ApplicationController`.

Instance Method Summary collapse

Instance Method Details

#default_url_optionsObject

Ensure that the locale choice is persistent across requests


27
28
29
# File 'app/controllers/concerns/hyrax/controller.rb', line 27

def default_url_options
  super.merge(locale: I18n.locale)
end

#user_root_pathObject

Provide a place for Devise to send the user to after signing in


22
23
24
# File 'app/controllers/concerns/hyrax/controller.rb', line 22

def user_root_path
  hyrax.dashboard_path
end