Sha256: 69e358ca5d56af941861aceea273612fda24600a135d055d8d56977317381afe
Contents?: true
Size: 812 Bytes
Versions: 2
Compression:
Stored size: 812 Bytes
Contents
class ActionDispatch::Routing::Mapper def comfy_route_cms(options = {}) ComfortableMexicanSofa.configuration.public_cms_path = options[:path] 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 '(*cms_path)' => 'content#show', :as => 'render_page', action: '/:format' end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
comfortable_mexican_sofa-1.12.11 | lib/comfortable_mexican_sofa/routes/cms.rb |
comfortable_mexican_sofa-1.12.10 | lib/comfortable_mexican_sofa/routes/cms.rb |