Sha256: f9e1f3e71776457a648e889a00a257ef161e164c00c1b10581d4a61e20ebf120
Contents?: true
Size: 739 Bytes
Versions: 3
Compression:
Stored size: 739 Bytes
Contents
# frozen_string_literal: true require 'hydra/role_management' require 'bootstrap_form' module Hydra module RoleManagement mattr_accessor :route_options self.route_options = {} # 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 http://api.rubyonrails.org/classes/ActionDispatch/Routing/Mapper/Base.html # (see ActionDispatch::Routing::Mapper::Base) def self.draw_routes(router, opts = {}) self.route_options = opts router.instance_exec do mount Hydra::RoleManagement::Engine => '/' end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
hydra-role-management-1.2.0 | lib/hydra-role-management.rb |
hydra-role-management-1.1.0 | lib/hydra-role-management.rb |
hydra-role-management-1.0.3 | lib/hydra-role-management.rb |