aboutsummaryrefslogtreecommitdiffstats
path: root/railties/environments/development.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-06-18 05:34:16 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-06-18 05:34:16 +0000
commit2533799e811df3f59d0231a0d54cb82787cb16f1 (patch)
tree6ea5d518154a7475c776582af7cd0508a12d8d30 /railties/environments/development.rb
parenta2f26b971bf61263582604ad7e1af14b9566949e (diff)
downloadrails-2533799e811df3f59d0231a0d54cb82787cb16f1.tar.gz
rails-2533799e811df3f59d0231a0d54cb82787cb16f1.tar.bz2
rails-2533799e811df3f59d0231a0d54cb82787cb16f1.zip
Added a 'whiny nil' that's aim to ensure that when users pass nil to methods where that isn't appropriate, instead of NoMethodError? and the name of some method used by the framework users will see a message explaining what type of object was expected. Only active in test and development environments by default #1209 [Michael Koziarski]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1454 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/environments/development.rb')
-rw-r--r--railties/environments/development.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/railties/environments/development.rb b/railties/environments/development.rb
index d3681e28ca..aab4562a51 100644
--- a/railties/environments/development.rb
+++ b/railties/environments/development.rb
@@ -1,3 +1,5 @@
+require 'active_support/whiny_nil'
+
Dependencies.mechanism = :load
ActionController::Base.consider_all_requests_local = true
ActionController::Base.perform_caching = false