Skip to content
This repository
Browse code

Fix typo in deprecation warning

Object#returning should be Kernel#returning
  • Loading branch information...
commit 383ea02e38101b7f54aeafb5cbe927273d00b25a 1 parent 597fb1d
Erik Michaels-Ober authored September 09, 2010 wycats committed September 10, 2010
2  activesupport/lib/active_support/core_ext/object/misc.rb
@@ -38,7 +38,7 @@ class Object
38 38
   #  
39 39
   #  foo # => ['bar', 'baz']
40 40
   def returning(value)
41  
-    ActiveSupport::Deprecation.warn('Object#returning has been deprecated in favor of Object#tap.', caller)
  41
+    ActiveSupport::Deprecation.warn('Kernel#returning has been deprecated in favor of Object#tap.', caller)
42 42
     yield(value)
43 43
     value
44 44
   end

0 notes on commit 383ea02

Please sign in to comment.
Something went wrong with that request. Please try again.