Class: Avo::DynamicRouter
- Inherits:
-
Object
- Object
- Avo::DynamicRouter
- Defined in:
- lib/avo/dynamic_router.rb
Class Method Summary collapse
Class Method Details
.routes ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/avo/dynamic_router.rb', line 3 def self.routes Avo::Engine.routes.draw do scope "resources", as: "resources" do Avo::Resources::ResourceManager.fetch_resources.map do |resource| resources resource.route_key do member do get :preview end end end end end end |