Sha256: 5343ab808894e83ad8cdbf4cf935f23f4d682f71813127e099de4b28eaba8753
Contents?: true
Size: 501 Bytes
Versions: 32
Compression:
Stored size: 501 Bytes
Contents
Foreman::Application.routes.draw do class BastionPagesConstraint def matches?(request) pages.include?(request.params[:bastion_page]) end private def pages pages = Bastion.plugins.collect { |name, plugin| plugin[:pages] } pages.flatten end end scope :bastion, :module => :bastion do match '/:bastion_page/(*path)', :to => "bastion#index", constraints: BastionPagesConstraint.new match '/bastion/(*path)', :to => "bastion#index_ie" end end
Version data entries
32 entries across 32 versions & 1 rubygems