This project is archived and is in readonly mode.

#3976 ✓resolved
Xavier Shay

Better style in NumberHelper

Reported by Xavier Shay | February 17th, 2010 @ 04:12 AM | in 3.0.2

NumberHelper uses blank rescues heap, this is pretty bad form and makes the code harder to understand. I refactored out the obvious abuses, though left in the ones on the i18n translate lines since I figure that pattern (which I don't like) is probably used elsewhere.

This doesn't change tested behaviour.

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>

Pages