Module: ActionDispatch::Routing::Mapper::Base

Defined in:
lib/organized_routes.rb

Instance Method Summary collapse

Instance Method Details

#organize_routesObject

TODO: find a way to have this happen automatically each time routes.rb is reloaded



20
21
22
# File 'lib/organized_routes.rb', line 20

def organize_routes
  OrganizedRoutes.load_routes
end

#routes_for(key) ⇒ Object



24
25
26
# File 'lib/organized_routes.rb', line 24

def routes_for(key)
  OrganizedRoutes.draw(key, self)
end