This project is archived and is in readonly mode.
fix pluralization for numbers formatted like '1.00'
Reported by Gabriel Mansour | January 30th, 2010 @ 06:15 PM | in 2.3.6
This patch fixes pluralization for numbers formatted like '1.00'
(e.g. when formatted using
number_with_precision()
).
pluralize('1.00', 'hour')
should return "1.00
hour"
instead of "1.00 hours"
.
Comments and changes to this ticket
-
Matt Duncan January 30th, 2010 @ 07:20 PM
+1 looks good to me.
This patch also means that the following is now true:
pluralize(1.00, "hour") == pluralize("1.00", "hour")
-
Gabriel Mansour January 30th, 2010 @ 08:37 PM
- Tag changed from actionpack, patch, pluralize, tested, text_helper to actionpack, actionview, patch, pluralize, tested, text_helper
-
Gabriel Mansour February 7th, 2010 @ 09:19 PM
- Assigned user set to Jeremy Kemper
Fixed in changeset 6451e864b9711d5f9982aa44a265362b4c5f4200.
-
Jeremy Kemper February 7th, 2010 @ 09:27 PM
- State changed from new to committed
- Milestone set to 2.3.6
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>