aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/whiny_nil.rb
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2011-03-07 20:58:54 +0000
committerJon Leighton <j@jonathanleighton.com>2011-03-07 20:58:54 +0000
commit67b17d029a8eeddd908cce2d4e0e27e4708e8463 (patch)
tree4cd589411104f7222835dd5012f4bb7743e1d215 /activesupport/lib/active_support/whiny_nil.rb
parentbb063b2f1b3e5b6fb2a4732cb696929f1652c555 (diff)
parent5968d7a65886d3450698889f685eccaf54749f43 (diff)
downloadrails-67b17d029a8eeddd908cce2d4e0e27e4708e8463.tar.gz
rails-67b17d029a8eeddd908cce2d4e0e27e4708e8463.tar.bz2
rails-67b17d029a8eeddd908cce2d4e0e27e4708e8463.zip
Merge branch 'master' into nested_has_many_through
Diffstat (limited to 'activesupport/lib/active_support/whiny_nil.rb')
-rw-r--r--activesupport/lib/active_support/whiny_nil.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/whiny_nil.rb b/activesupport/lib/active_support/whiny_nil.rb
index 91ddef2619..bcedbfd57a 100644
--- a/activesupport/lib/active_support/whiny_nil.rb
+++ b/activesupport/lib/active_support/whiny_nil.rb
@@ -37,7 +37,7 @@ class NilClass
# Raises a RuntimeError when you attempt to call +id+ on +nil+.
def id
- raise RuntimeError, "Called id for nil, which would mistakenly be 4 -- if you really wanted the id of nil, use object_id", caller
+ raise RuntimeError, "Called id for nil, which would mistakenly be #{object_id} -- if you really wanted the id of nil, use object_id", caller
end
private