From 383ea02e38101b7f54aeafb5cbe927273d00b25a Mon Sep 17 00:00:00 2001 From: Erik Michaels-Ober Date: Thu, 9 Sep 2010 05:04:19 +0800 Subject: [PATCH] Fix typo in deprecation warning Object#returning should be Kernel#returning --- activesupport/lib/active_support/core_ext/object/misc.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activesupport/lib/active_support/core_ext/object/misc.rb b/activesupport/lib/active_support/core_ext/object/misc.rb index 40611a67e1031..554f44abe16f9 100644 --- a/activesupport/lib/active_support/core_ext/object/misc.rb +++ b/activesupport/lib/active_support/core_ext/object/misc.rb @@ -38,7 +38,7 @@ class Object # # foo # => ['bar', 'baz'] def returning(value) - ActiveSupport::Deprecation.warn('Object#returning has been deprecated in favor of Object#tap.', caller) + ActiveSupport::Deprecation.warn('Kernel#returning has been deprecated in favor of Object#tap.', caller) yield(value) value end