Class: ActionDispatch::Routing::Mapper
- Inherits:
-
Object
- Object
- ActionDispatch::Routing::Mapper
- Defined in:
- lib/brightcontent/pages/routes.rb
Instance Method Summary collapse
Instance Method Details
#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 |