module Hydra::RoleManagement

Constants

VERSION

Public Class Methods

draw_routes(router, opts = {}) click to toggle source

Draws the routes with custom arguments passed to the mount invocation @param router [ActionDispatch::Routing::Mapper] the Rails routing mapper @param opts [Hash] passed to ActionDispatch::Routing::Mapper#mount @see api.rubyonrails.org/classes/ActionDispatch/Routing/Mapper/Base.html (see ActionDispatch::Routing::Mapper::Base)

# 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