This project is archived and is in readonly mode.

#1774 ✓resolved
Josh Susser

refactor #try to use inheritance

Reported by Josh Susser | January 17th, 2009 @ 01:32 AM | in 2.x

I'm not a fan of Object#try, but if it's going to be in the code base, the implementation should at least be optimal. This patch collapses two method calls and a conditional test into a single method call by splitting the two cases into two methods in Object and NilClass.

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>

People watching this ticket

Attachments

Referenced by

Pages