Sha256: 9186b2bac0e2bd2fabb07ac41343514e432ac9f94caa4f036c9426346f67384c
Contents?: true
Size: 811 Bytes
Versions: 7
Compression:
Stored size: 811 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 '/:format' => 'content#show', :as => 'render_page', :path => "(*cms_path)" end end end end
Version data entries
7 entries across 7 versions & 1 rubygems