Walter McGinnis
2010-May-03 23:20 UTC
Helper module not included on subsequent requests form engine gem in development from passenger
Hi, 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: http://github.com/kete/kete_translatable_content/blob/master/rails/init.rb and here is the other gem''s lib that is being included: http://github.com/kete/mongo_translatable/blob/master/lib/translatables_helper.rb 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 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.