Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Avoid warning about `whiny_nils` in Rails 4

Rails 4 says:

```
DEPRECATION WARNING: config.whiny_nils option is deprecated and no
longer works.
```
  • Loading branch information...
commit 56dd5fb351f8b7a5942096004849dbc6105414fc 1 parent 2706a7a
@tricknotes tricknotes authored
View
3  test/dummy/config/environments/development.rb
@@ -6,9 +6,6 @@
# since you don't have to restart the web server when you make code changes.
config.cache_classes = false
- # Log error messages when you accidentally call methods on nil.
- config.whiny_nils = true
-
# Show full error reports and disable caching
config.consider_all_requests_local = true
config.action_controller.perform_caching = false
View
3  test/dummy/config/environments/test.rb
@@ -11,9 +11,6 @@
config.serve_static_assets = true
config.static_cache_control = "public, max-age=3600"
- # Log error messages when you accidentally call methods on nil
- config.whiny_nils = true
-
# Show full error reports and disable caching
config.consider_all_requests_local = true
config.action_controller.perform_caching = false
Please sign in to comment.
Something went wrong with that request. Please try again.