Skip to content
3f80403
Damian Galarza and Tute Costa Support dependency injection for routes engine
11 lines (9 sloc) 280 Bytes
HighVoltage.parent_engine.routes.draw do
if HighVoltage.home_page
get "/#{HighVoltage.home_page}", to: redirect('/')
root to: 'high_voltage/pages#show', id: HighVoltage.home_page
end
if HighVoltage.routes
get HighVoltage.route_drawer.match_attributes
end
end
Jump to Line
Something went wrong with that request. Please try again.