Skip to content

Commit

Permalink
Fix typo in deprecation warning
Browse files Browse the repository at this point in the history
Object#returning should be Kernel#returning
  • Loading branch information
sferik authored and wycats committed Sep 9, 2010
1 parent 597fb1d commit 383ea02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activesupport/lib/active_support/core_ext/object/misc.rb
Expand Up @@ -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
Expand Down

0 comments on commit 383ea02

Please sign in to comment.