This project is archived and is in readonly mode.

Changeset [e6d14279b881d8482c124bd55d0830a7ddcbcb0e] 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...

Committed by raggi

  • M activesupport/lib/active_support/core_ext/object/try.rb
  • M activesupport/test/core_ext/object_and_class_ext_test.rb

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>