class MoreViewHooks::Engine

Simple engine to support the Redmine plugin

Private Instance Methods

patch_redmine_plugins_eager_load_paths!(app) click to toggle source
# File lib/more_view_hooks/engine.rb, line 17
def patch_redmine_plugins_eager_load_paths!(app)
  app.railties._all.each do |railtie|
    next unless railtie.respond_to?(:root) &&
                railtie.config.respond_to?(:eager_load_paths)
    railtie.config.eager_load_paths.map!(&:to_s)
  end
end