I’m working on a Rails 2.3.5 based gem that acts as an “add-on” for an
existing application. It basically pulls in functionality from
another more generic gem and sets up the application to use it.
In its rails/init.rb it adds some helpers to ApplicationHelper.
Here’s the init.rb file:
and here is the other gem’s lib that is being included:
My issue is that after the initial request to my app on a view that
calls one of those helpers, I get a method not defined error if I’m in
development mode (production works as expected).
I’ve tried a few different things (unloadable and wrapping method
definitions in unless modules.include? TranslatablesHelpers
conditional), but am not making any headway.
Suggestions?
Cheers,
Walter
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.