This project is archived and is in readonly mode.
Changeset [e6d14279b881d8482c124bd55d0830a7ddcbcb0e] by raggi
Revision e6d14279b881d8482c124bd55d0830a7ddcbcb0e,
committed by raggi
· November 14th, 2010 @ 09:23 AM
Add support for try to just yield the object to a block if no
method is to be called. Kind of like a tap_if_present.
https://github.com/rails/rails/commit/e6d14279b881d8482c124bd55d083...
2 changed files
-
M
activesupport/lib/active_support/core_ext/object/try.rb -
M
activesupport/test/core_ext/object_and_class_ext_test.rb