diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-06-25 11:15:38 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-06-25 11:15:38 +0000 |
commit | a995f42be0f9a14705d188c46c1db995baa01cf1 (patch) | |
tree | 5e2c2d38fa9ade6217f42b91ecd35509600075a7 /activesupport/lib | |
parent | f16e0ec3eb2402284d871653df3d6c042c1a852f (diff) | |
download | rails-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')
-rw-r--r-- | activesupport/lib/active_support/whiny_nil.rb | 3 |
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 |