Sha256: dd5bd896fe2129cd073956118c8d95a42200406b86251c186a519b08d8bf42c5
Contents?: true
Size: 482 Bytes
Versions: 94
Compression:
Stored size: 482 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 :module => :bastion do get '/:bastion_page/(*path)', :to => "bastion#index", constraints: BastionPagesConstraint.new get '/bastion/(*path)', :to => "bastion#index_ie" end end
Version data entries
94 entries across 94 versions & 1 rubygems