Sha256: ba390282a636cd4a82e8df373cd73c48fcfb3a10758db58066379a32cb51a6b9
Contents?: true
Size: 579 Bytes
Versions: 17
Compression:
Stored size: 579 Bytes
Contents
# frozen_string_literal: true 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
17 entries across 17 versions & 6 rubygems