Module: Hydra::Controller::ControllerBehavior
- Extended by:
- ActiveSupport::Concern
- Included in:
- CatalogController
- Defined in:
- lib/hydra/controller/controller_behavior.rb
Overview
Include this module into any of your Controller classes to add Hydra functionality
The primary function of this module is to mix in a number of other Hydra Modules, including
Hydra::AccessControlsEnforcement
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
-
#user_key ⇒ Object
get the currently configured user identifier.
Instance Method Details
#user_key ⇒ Object
get the currently configured user identifier. Can be overridden to return whatever (ie. login, email, etc) defaults to using whatever you have set as the Devise authentication_key
34 35 36 |
# File 'lib/hydra/controller/controller_behavior.rb', line 34 def user_key current_user.user_key if current_user end |