Closed codeodor closed 5 years ago
Hold off on this. It doesn't generate the correct routes, even though the errors went away.
Ok, I updated the example with code that works.
But is there a better way to accomplish this?
Word of warning: doing this necessitates lots of restarts any time you change something that would reload the classes in use here. I'm still in search of a better way, but definitely still want to save someone the hassle of sticking main_app
in front of every place they've used a route helper.
Thanks @codeodor for this PR
When an application is already well established, it may be too time-consuming to change all instances of route helpers from the resource-based style to actually name the method, and all where named methods are used, to be prefixed by main_app.