Sha256: 2ce3b2fa48343909f46e8622ac605e814fc62c9f0fbbe4a27dc2caa721fa9591
Contents?: true
Size: 727 Bytes
Versions: 2
Compression:
Stored size: 727 Bytes
Contents
class ActionDispatch::Routing::Mapper def comfy_route_cms(options = {}) scope :module => :comfy, :as => :comfy do namespace :cms, :path => options[:path] do get 'cms-css/:site_id/:identifier(/:cache_buster)' => 'assets#render_css', :as => 'render_css' get 'cms-js/:site_id/:identifier(/:cache_buster)' => 'assets#render_js', :as => 'render_js' if options[:sitemap] get '(:cms_path)/sitemap' => 'content#render_sitemap', :as => 'render_sitemap', :constraints => {:format => /xml/}, :format => :xml end get '/:format' => 'content#show', :as => 'render_page', :path => "(*cms_path)" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
comfortable_mexican_sofa-1.12.2 | lib/comfortable_mexican_sofa/routes/cms.rb |
comfortable_mexican_sofa-1.12.1 | lib/comfortable_mexican_sofa/routes/cms.rb |