Module: Hydra::RoleManagement

Defined in:
lib/hydra-role-management.rb,
lib/hydra/role_management.rb,
lib/hydra/role_management/version.rb,
app/models/concerns/hydra/role_management/user_roles.rb,
app/controllers/concerns/hydra/role_management/roles_behavior.rb,
app/controllers/concerns/hydra/role_management/user_roles_behavior.rb,
app/models/concerns/hydra/role_management/legacy_attribute_handling.rb

Defined Under Namespace

Modules: LegacyAttributeHandling, RolesBehavior, UserRoles, UserRolesBehavior Classes: Engine

Constant Summary collapse

VERSION =
'1.2.0'

Class Method Summary collapse

Class Method Details

.draw_routes(router, opts = {}) ⇒ Object

Draws the routes with custom arguments passed to the #mount invocation (see ActionDispatch::Routing::Mapper::Base)

Parameters:

  • router (ActionDispatch::Routing::Mapper)

    the Rails routing mapper

  • opts (Hash) (defaults to: {})

    passed to ActionDispatch::Routing::Mapper#mount

See Also:



16
17
18
19
20
21
# File 'lib/hydra-role-management.rb', line 16

def self.draw_routes(router, opts = {})
  self.route_options = opts
  router.instance_exec do
    mount Hydra::RoleManagement::Engine => '/'
  end
end