diff --git a/config/application.rb b/config/application.rb index f1ed846..f8cc2ba 100644 --- a/config/application.rb +++ b/config/application.rb @@ -105,6 +105,8 @@ module Noosfero config.paths['db/migrate'].concat Dir.glob("#{Rails.root}/{baseplugins,config/plugins}/*/db/migrate") config.i18n.load_path.concat Dir.glob("#{Rails.root}/{baseplugins,config/plugins}/*/locales/*.{rb,yml}") + config.eager_load = true + Noosfero::Plugin.setup(config) end diff --git a/config/environments/cucumber.rb b/config/environments/cucumber.rb index 8b3974f..d22cd50 100644 --- a/config/environments/cucumber.rb +++ b/config/environments/cucumber.rb @@ -9,8 +9,6 @@ Noosfero::Application.configure do config.assets.debug = false - config.eager_load = false - config.active_support.deprecation = :log # Show full error reports and disable caching diff --git a/config/environments/production.rb b/config/environments/production.rb index ba3cc9f..92a47b2 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -5,8 +5,6 @@ Noosfero::Application.configure do # Code is not reloaded between requests config.cache_classes = true - config.eager_load = true - # Full error reports are disabled and caching is turned on # config.action_controller.perform_caching = true diff --git a/config/environments/test.rb b/config/environments/test.rb index 70ebc40..89cb5ea 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -7,8 +7,6 @@ Noosfero::Application.configure do # and recreated between test runs. Don't rely on the data there! config.cache_classes = true - config.eager_load = false - # Configure static asset server for tests with Cache-Control for performance config.serve_static_assets = true config.static_cache_control = "public, max-age=3600" -- libgit2 0.21.2