Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix typo in deprecation warning

Object#returning should be Kernel#returning
  • Loading branch information...
commit 383ea02e38101b7f54aeafb5cbe927273d00b25a 1 parent 597fb1d
@sferik sferik authored wycats committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  activesupport/lib/active_support/core_ext/object/misc.rb
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.