Method: ActionDispatch::Routing::Mapper#pages_resources

Defined in:
lib/brightcontent/pages/routes.rb

#pages_resources(&block) ⇒ Object



3
4
5
6
7
8
9
10
11
# File 'lib/brightcontent/pages/routes.rb', line 3

def pages_resources(&block)
  resources :pages do
    collection do
      get :index
      post :rebuild
    end
    instance_eval &block if block_given?
  end
end