Sha256: b21be6793fe8076c6b0b025c8cd209ceb683bbc89afb5ac023a067bc1c0aa549
Contents?: true
Size: 654 Bytes
Versions: 11
Compression:
Stored size: 654 Bytes
Contents
# frozen_string_literal: true class ActionDispatch::Routing::Mapper def comfy_route_blog_admin(options = {}) options[:path] ||= "admin" path = [options[:path], "sites", ":site_id"].join("/") scope module: :comfy, as: :comfy do scope module: :admin do namespace :blog, as: :admin, path: path, except: [:show] do resources :posts, as: :blog_posts, path: "blog-posts" do get :form_fragments, on: :member resources :revisions, only: %i[index show], controller: "revisions/post" do patch :revert, on: :member end end end end end end end
Version data entries
11 entries across 11 versions & 6 rubygems