Class: ActionDispatch::Routing::RouteSet
- Defined in:
- lib/lolita/rails/routes.rb
Instance Method Summary collapse
-
#draw_with_lolita(*args, &block) ⇒ Object
Each time when #draw method is called this is called as well.
Instance Method Details
#draw_with_lolita(*args, &block) ⇒ Object
Each time when #draw method is called this is called as well. It creates :left_side_navigation tree and call callbacks Lolita#before_routes_loaded and Lolita#after_routes_loaded
8 9 10 11 12 |
# File 'lib/lolita/rails/routes.rb', line 8 def draw_with_lolita *args,&block Lolita.run(:before_routes_loaded) draw_without_lolita *args,&block Lolita.run(:after_routes_loaded) end |