Skip to content
Browse files

Fix typo in deprecation warning

Object#returning should be Kernel#returning
  • Loading branch information...
1 parent 597fb1d commit 383ea02e38101b7f54aeafb5cbe927273d00b25a @sferik sferik committed with wycats
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

0 comments on commit 383ea02

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