Commit 69d5f48c2b52a15fd896d9e2629e3805bb8c010e
1 parent
65264159
Exists in
master
and in
20 other branches
rails4: use eager_load by default (fix api tests)
Showing
4 changed files
with
2 additions
and
6 deletions
Show diff stats
config/application.rb
... | ... | @@ -105,6 +105,8 @@ module Noosfero |
105 | 105 | config.paths['db/migrate'].concat Dir.glob("#{Rails.root}/{baseplugins,config/plugins}/*/db/migrate") |
106 | 106 | config.i18n.load_path.concat Dir.glob("#{Rails.root}/{baseplugins,config/plugins}/*/locales/*.{rb,yml}") |
107 | 107 | |
108 | + config.eager_load = true | |
109 | + | |
108 | 110 | Noosfero::Plugin.setup(config) |
109 | 111 | |
110 | 112 | end | ... | ... |
config/environments/cucumber.rb
config/environments/production.rb
... | ... | @@ -5,8 +5,6 @@ Noosfero::Application.configure do |
5 | 5 | # Code is not reloaded between requests |
6 | 6 | config.cache_classes = true |
7 | 7 | |
8 | - config.eager_load = true | |
9 | - | |
10 | 8 | # Full error reports are disabled and caching is turned on |
11 | 9 | # config.action_controller.perform_caching = true |
12 | 10 | ... | ... |
config/environments/test.rb
... | ... | @@ -7,8 +7,6 @@ Noosfero::Application.configure do |
7 | 7 | # and recreated between test runs. Don't rely on the data there! |
8 | 8 | config.cache_classes = true |
9 | 9 | |
10 | - config.eager_load = false | |
11 | - | |
12 | 10 | # Configure static asset server for tests with Cache-Control for performance |
13 | 11 | config.serve_static_assets = true |
14 | 12 | config.static_cache_control = "public, max-age=3600" | ... | ... |