Skip to content

Commit

Permalink
Added a 'whiny nil' that's aim to ensure that when users pass nil to …
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
dhh committed Jun 18, 2005
1 parent a2f26b9 commit 2533799
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions railties/CHANGELOG
@@ -1,5 +1,7 @@
*SVN* *SVN*


* 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]

* Fixed the test_helper.rb to be safe for requiring controllers from multiple spots, like app/controllers/article_controller.rb and app/controllers/admin/article_controller.rb, without reloading the environment twice #1390 [Nicholas Seckar] * Fixed the test_helper.rb to be safe for requiring controllers from multiple spots, like app/controllers/article_controller.rb and app/controllers/admin/article_controller.rb, without reloading the environment twice #1390 [Nicholas Seckar]


* Fixed Webrick to escape + characters in URL's the same way that lighttpd and apache do #1397 [Nicholas Seckar] * Fixed Webrick to escape + characters in URL's the same way that lighttpd and apache do #1397 [Nicholas Seckar]
Expand Down
2 changes: 2 additions & 0 deletions railties/environments/development.rb
@@ -1,3 +1,5 @@
require 'active_support/whiny_nil'

Dependencies.mechanism = :load Dependencies.mechanism = :load
ActionController::Base.consider_all_requests_local = true ActionController::Base.consider_all_requests_local = true
ActionController::Base.perform_caching = false ActionController::Base.perform_caching = false
Expand Down
2 changes: 2 additions & 0 deletions railties/environments/test.rb
@@ -1,3 +1,5 @@
require 'active_support/whiny_nil'

Dependencies.mechanism = :require Dependencies.mechanism = :require
ActionController::Base.consider_all_requests_local = true ActionController::Base.consider_all_requests_local = true
ActionController::Base.perform_caching = false ActionController::Base.perform_caching = false
Expand Down

0 comments on commit 2533799

Please sign in to comment.