提交 383ea02e 编写于 作者: E Erik Michaels-Ober 提交者: Yehuda Katz

Fix typo in deprecation warning

Object#returning should be Kernel#returning
上级 597fb1da
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册