Module: Hammock::RouteDrawingHooks::Methods

Defined in:
lib/hammock/route_drawing_hooks.rb

Instance Method Summary collapse

Instance Method Details

#draw_with_hammock_route_map_init(&block) ⇒ Object



16
17
18
19
20
# File 'lib/hammock/route_drawing_hooks.rb', line 16

def draw_with_hammock_route_map_init &block
  Hammock.load_models
  ActionController::Routing::Routes.send :initialize_hammock_route_map
  draw_without_hammock_route_map_init &block
end