Sha256: eb0d91f4747bb8b841c4363187a6c16bb352c0377e07a37a814aee2bb4f3e659
Contents?: true
Size: 1.31 KB
Versions: 11
Compression:
Stored size: 1.31 KB
Contents
class ActionDispatch::Routing::Mapper def comfy_route_cms_admin(options = {}) options[:path] ||= 'admin' scope :module => :comfy, :as => :comfy do scope :module => :admin do namespace :cms, :as => :admin_cms, :path => options[:path], :except => :show do get '/', :to => 'base#jump' resources :sites do resources :pages do get :form_blocks, :on => :member get :toggle_branch, :on => :member put :reorder, :on => :collection resources :revisions, :only => [:index, :show, :revert] do patch :revert, :on => :member end end resources :files do put :reorder, :on => :collection end resources :layouts do put :reorder, :on => :collection resources :revisions, :only => [:index, :show, :revert] do patch :revert, :on => :member end end resources :snippets do put :reorder, :on => :collection resources :revisions, :only => [:index, :show, :revert] do patch :revert, :on => :member end end resources :categories end end end end end end
Version data entries
11 entries across 11 versions & 1 rubygems