Sha256: b400a61eaddc0227f25e4d38a91c2bb6473741dc3bb6453cc386fd05eb1e6e33

Contents?: true

Size: 548 Bytes

Versions: 3

Compression:

Stored size: 548 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'

        get '(*cms_path)' => 'content#show', as: 'render_page', action: '/:format'
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
comfortable_mexican_sofa-2.0.2 lib/comfortable_mexican_sofa/routes/cms.rb
comfortable_mexican_sofa-2.0.1 lib/comfortable_mexican_sofa/routes/cms.rb
comfortable_mexican_sofa-2.0.0 lib/comfortable_mexican_sofa/routes/cms.rb