Project

General

Profile

« Previous | Next » 

Revision 9ef39dd6

Added by Amos Benari over 10 years ago

fixes #3821 Plugin menus are lost after page refresh in development

View differences:

config/application.rb
config.autoload_paths += %W(#{config.root}/app/models/trends)
config.autoload_paths += %W(#{config.root}/app/models/taxonomies)
# Load the following paths only once in development environment
# this is useful to keep singletons from reloading.
if Rails.env.development?
config.autoload_once_paths += Dir["#{config.root}/app/services/foreman"]
config.autoload_once_paths += Dir["#{config.root}/app/services/menu"]
end
# Only load the plugins named here, in the order given (default is alphabetical).
# :all can be used as a placeholder for all plugins not explicitly named.

Also available in: Unified diff