Commit c77c98ceb16a64015aea7ca8847fe6074dd28bc0
1 parent
680b5a00
Exists in
master
and in
1 other branch
Changing some rails 4 config flags
Showing
4 changed files
with
4 additions
and
5 deletions
Show diff stats
config/environments/development.rb
| @@ -6,8 +6,7 @@ Errbit::Application.configure do | @@ -6,8 +6,7 @@ Errbit::Application.configure do | ||
| 6 | # since you don't have to restart the webserver when you make code changes. | 6 | # since you don't have to restart the webserver when you make code changes. |
| 7 | config.cache_classes = false | 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 | # Show full error reports and disable caching | 11 | # Show full error reports and disable caching |
| 13 | config.consider_all_requests_local = true | 12 | config.consider_all_requests_local = true |
config/environments/production.rb
| @@ -5,6 +5,8 @@ Errbit::Application.configure do | @@ -5,6 +5,8 @@ Errbit::Application.configure do | ||
| 5 | # Code is not reloaded between requests | 5 | # Code is not reloaded between requests |
| 6 | config.cache_classes = true | 6 | config.cache_classes = true |
| 7 | 7 | ||
| 8 | + config.eager_load = true | ||
| 9 | + | ||
| 8 | # Shows or hides all error details if something goes wrong inside Errbit | 10 | # Shows or hides all error details if something goes wrong inside Errbit |
| 9 | config.consider_all_requests_local = false | 11 | config.consider_all_requests_local = false |
| 10 | # Caching is turned on | 12 | # Caching is turned on |
config/environments/test.rb
| @@ -7,8 +7,7 @@ Errbit::Application.configure do | @@ -7,8 +7,7 @@ Errbit::Application.configure do | ||
| 7 | # and recreated between test runs. Don't rely on the data there! | 7 | # and recreated between test runs. Don't rely on the data there! |
| 8 | config.cache_classes = true | 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 | # Show full error reports and disable caching | 12 | # Show full error reports and disable caching |
| 14 | config.consider_all_requests_local = true | 13 | config.consider_all_requests_local = true |
config/initializers/mongo.rb
| @@ -39,6 +39,5 @@ elsif ENV['HEROKU'] || ENV['USE_ENV'] | @@ -39,6 +39,5 @@ elsif ENV['HEROKU'] || ENV['USE_ENV'] | ||
| 39 | end | 39 | end |
| 40 | end | 40 | end |
| 41 | 41 | ||
| 42 | -Mongoid.allow_dynamic_fields = false | ||
| 43 | Mongoid.use_activesupport_time_zone = true | 42 | Mongoid.use_activesupport_time_zone = true |
| 44 | Mongoid.identity_map_enabled = true | 43 | Mongoid.identity_map_enabled = true |