Sha256: 63f24eff86b3b1fe358c1e795a16b964a354c4fb0a8d0f44ed3f800e9c2b1c0c

Contents?: true

Size: 619 Bytes

Versions: 2

Compression:

Stored size: 619 Bytes

Contents

class ActionDispatch::Routing::Mapper

  def comfy_route_cms(options = {})
    namespace :cms, :path => options[:path] do
      get 'cms-css/:site_id/:identifier' => 'assets#render_css', :as => 'render_css'
      get 'cms-js/:site_id/:identifier'  => '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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
comfortable_mexican_sofa-1.11.2 lib/comfortable_mexican_sofa/routes/cms.rb
comfortable_mexican_sofa-1.11.1 lib/comfortable_mexican_sofa/routes/cms.rb