Module: Hydra::User
- Extended by:
- ActiveSupport::Concern
- Includes:
- Blacklight::AccessControls::User
- Defined in:
- lib/hydra/user.rb
Overview
Injects behaviors into User model so that it will work with Hydra Access Controls By default, this module assumes you are using the User model created by Blacklight, which uses Devise. To integrate your own User implementation into Hydra, override this Module or define your own User model in app/models/user.rb within your Hydra head.
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#groups ⇒ Object
13 14 15 |
# File 'lib/hydra/user.rb', line 13 def groups group_service.fetch_groups(user: self) end |