Sha256: aa5b5d738d8fb483aceb215c2a69d66a7f52bf501479cf8f428747990cb3b40b
Contents?: true
Size: 652 Bytes
Versions: 11
Compression:
Stored size: 652 Bytes
Contents
Coprl::Presenters::Rails::Engine.routes.draw do class PomExists extend Coprl::Presenters::WebClient::Helpers::Rails::Namespaced def self.matches?(request) presenter = namespaced_presenter(request.params) fq_presenter = [presenter, 'index'].join(':') presenter ? Coprl::Presenters::App.keys.include?(presenter) || Coprl::Presenters::App.registered?(fq_presenter) : false end end get ':namespace1/:namespace2/:presenter' => "coprl#show", constraints: PomExists get ':namespace1/:presenter' => "coprl#show", constraints: PomExists get ':presenter' => "coprl#show", constraints: PomExists end
Version data entries
11 entries across 11 versions & 1 rubygems