Open ruckus opened 12 years ago
Hmmm this might be a hard one to solve.
grep_routes intentionally doesn't load Rails, or any gems. It mocks out objects it finds in your routes file enough so that ActionDispatch's routing can parse the routes. Because I avoid loading Rails we get a massive speed increase.
I'm thinking I may have to attempt to require devise, if needed, so thedevise_for
returns something ActionDispatch can work with when routes.rb is eval'd.
Thanks for the feedback!
Yeah I figured it was due to grep_routes
not loading Rails / gems, which is fine.
A plausible workaround would be to document this trade-off and then just rescue from it and continue along...?
I am using Devise for authentication and my
routes.rb
has a line:devise_for :users, :controllers => { :sessions => "sessions" }
When I invoke
grep_routes
I receive the following error: