aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/whiny_nil.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-06-25 11:15:38 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-06-25 11:15:38 +0000
commita995f42be0f9a14705d188c46c1db995baa01cf1 (patch)
tree5e2c2d38fa9ade6217f42b91ecd35509600075a7 /activesupport/lib/active_support/whiny_nil.rb
parentf16e0ec3eb2402284d871653df3d6c042c1a852f (diff)
downloadrails-a995f42be0f9a14705d188c46c1db995baa01cf1.tar.gz
rails-a995f42be0f9a14705d188c46c1db995baa01cf1.tar.bz2
rails-a995f42be0f9a14705d188c46c1db995baa01cf1.zip
Added tests for whiny nil #1476 [court3nay/marcel]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1507 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/lib/active_support/whiny_nil.rb')
-rw-r--r--activesupport/lib/active_support/whiny_nil.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/whiny_nil.rb b/activesupport/lib/active_support/whiny_nil.rb
index 3612c6acbf..5176e64185 100644
--- a/activesupport/lib/active_support/whiny_nil.rb
+++ b/activesupport/lib/active_support/whiny_nil.rb
@@ -6,9 +6,8 @@
# by the framework users will see a message explaining what type of object
# was expected.
-
class NilClass
- WHINERS = [ ActiveRecord::Base, Array ]
+ WHINERS = [ ::ActiveRecord::Base, ::Array ]
@@method_class_map = Hash.new