codeplant/simple-navigation

Url helpers not found, when eager_load is enabled

nlsrchtr opened this issue · 1 comments

I was installing simple-navigation into a Rails 7 application and everything looks great, but when enabling eager loading (f.e. in tests) by using Rails.application.eager_load! I got undefined method url_for' for main:Object`.

I was looking through the wiki and FAQs, but couldn't find a hint on how to solve this.

I know, that Rails 7 is currently not supported and eager loading is also disabled in the test suite, but maybe someone has an idea on how to fix it.

Thanks a lot for any support.

andi commented

Hi, would you have time to investigate?