Commit c77c98ceb16a64015aea7ca8847fe6074dd28bc0

Authored by Arthur Neves
1 parent 680b5a00
Exists in master and in 1 other branch production

Changing some rails 4 config flags

config/environments/development.rb
... ... @@ -6,8 +6,7 @@ Errbit::Application.configure do
6 6 # since you don't have to restart the webserver when you make code changes.
7 7 config.cache_classes = false
8 8  
9   - # Log error messages when you accidentally call methods on nil.
10   - config.whiny_nils = true
  9 + config.eager_load = false
11 10  
12 11 # Show full error reports and disable caching
13 12 config.consider_all_requests_local = true
... ...
config/environments/production.rb
... ... @@ -5,6 +5,8 @@ Errbit::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 +
8 10 # Shows or hides all error details if something goes wrong inside Errbit
9 11 config.consider_all_requests_local = false
10 12 # Caching is turned on
... ...
config/environments/test.rb
... ... @@ -7,8 +7,7 @@ Errbit::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   - # Log error messages when you accidentally call methods on nil.
11   - config.whiny_nils = true
  10 + config.eager_load = false
12 11  
13 12 # Show full error reports and disable caching
14 13 config.consider_all_requests_local = true
... ...
config/initializers/mongo.rb
... ... @@ -39,6 +39,5 @@ elsif ENV['HEROKU'] || ENV['USE_ENV']
39 39 end
40 40 end
41 41  
42   -Mongoid.allow_dynamic_fields = false
43 42 Mongoid.use_activesupport_time_zone = true
44 43 Mongoid.identity_map_enabled = true
... ...