Sha256: 0a62161f2fdaf33fb8565ec1ca6bfa431975c72c54906f01332821de4e3719ac
Contents?: true
Size: 578 Bytes
Versions: 1
Compression:
Stored size: 578 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 resources :revisions, only: [:index, :show], controller: "revisions/post" do patch :revert, on: :member end end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
comfy_blog-2.0.2 | lib/comfy_blog/routes/blog_admin.rb |