Sha256: ece3e6df544a5260013e6725b2dd8928ddff091a8b1388ffb2c5650f78b57426
Contents?: true
Size: 736 Bytes
Versions: 1
Compression:
Stored size: 736 Bytes
Contents
Rails.application.routes.draw do class Constraint def matches?(request) path = request.original_fullpath.clone @page = Ckpages::Page.where(:path => CGI::unescape(path)) @page.present? end end if Ckpages.enabled scope module: :ckpages do resources :plugin_uploads end get "*path" => 'ckpages/public#show', constraints: Constraint.new, format: false get "*path" => "ckpages/public404#show", format: false if Ckpages.root root 'ckpages/public#show', constraints: Constraint.new, format: false root 'ckpages/public404#show', as: 'root404', format: false end end end Ckpages::Engine.routes.draw do resources :uploads resources :pages resources :parts end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ckpages-0.1.1 | config/routes.rb |