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

Version Path
coprl-3.0.0.beta.12 rails-engine/config/routes.rb
coprl-3.0.0.beta.11 rails-engine/config/routes.rb
coprl-3.0.0.beta.10 rails-engine/config/routes.rb
coprl-3.0.0.beta.9 rails-engine/config/routes.rb
coprl-3.0.0.beta.8 rails-engine/config/routes.rb
coprl-3.0.0.beta.7 rails-engine/config/routes.rb
coprl-3.0.0.beta.6 rails-engine/config/routes.rb
coprl-3.0.0.beta.5 rails-engine/config/routes.rb
coprl-3.0.0.beta.4 rails-engine/config/routes.rb
coprl-3.0.0.beta.3 rails-engine/config/routes.rb
coprl-3.0.0.beta.2 rails-engine/config/routes.rb