Sha256: 34cea70e16b356dae2b7f409a7a3ddd1a420acade3465ee2aae35e88a4122851
Contents?: true
Size: 751 Bytes
Versions: 2
Compression:
Stored size: 751 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] the argument 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hydra-role-management-1.0.2 | lib/hydra-role-management.rb |
hydra-role-management-1.0.1 | lib/hydra-role-management.rb |