This project is archived and is in readonly mode.

#3281 ✓resolved
Matías Flores

[PATCH] Prefer tap over returning in ActiveSupport

Reported by Matías Flores | September 27th, 2009 @ 10:14 PM

ActiveSupport's returning function has been replaced by object#tap whenever was possible.

I've attached a patch to start using tap in those areas of ActiveSupport that were still using returning.

Notice that there are two different patches, one for master and the other for 2-3-stable.

Comments and changes to this ticket

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>

Referenced by

Pages