Sha256: 52c017784bb93041eae9850f6298a8af1fb359dce2f6360d6bd62d812fc13310
Contents?: true
Size: 623 Bytes
Versions: 3
Compression:
Stored size: 623 Bytes
Contents
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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
comfy_blog-2.0.5 | lib/comfy_blog/routes/blog_admin.rb |
comfy_blog-2.0.4 | lib/comfy_blog/routes/blog_admin.rb |
comfy_blog-2.0.3 | lib/comfy_blog/routes/blog_admin.rb |