Module: Hydra::User
- 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
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(klass) ⇒ Object
7 8 9 10 |
# File 'lib/hydra/user.rb', line 7 def self.included(klass) # Other modules to auto-include klass.extend(ClassMethods) end |
Instance Method Details
#groups ⇒ Object
12 13 14 |
# File 'lib/hydra/user.rb', line 12 def groups RoleMapper.roles(self) end |