This project is archived and is in readonly mode.
ActiveSupport::Duration#inspect for zero length duration
Reported by Levin Alexander | June 25th, 2009 @ 09:49 PM | in 2.x
calling inspect
for a duration of
0.seconds
returns an empty string. This surprised me.
I'd have expected one of the following:
'0 seconds'
(or minutes/hours/years)'0'
The attached patch (against master) makes
0.seconds.inspect
return "0 seconds"
Comments and changes to this ticket
-
Repository July 2nd, 2009 @ 07:25 PM
- State changed from new to resolved
(from [ab2d6abb55b45543656e2a0238857d3ba8379257]) make #inspect if zero length duration return '0 seconds' instead of empty string [#2838 state:resolved]
Signed-off-by: Yehuda Katz + Carl Lerche ykatz+clerche@engineyard.com
http://github.com/rails/rails/commit/ab2d6abb55b45543656e2a0238857d... -
Repository July 2nd, 2009 @ 07:25 PM
(from [d8fff7d9d5ac4283fcabd7ecf64af5709410424f]) make #inspect if zero length duration return '0 seconds' instead of empty string [#2838 state:resolved]
Signed-off-by: Yehuda Katz + Carl Lerche ykatz+clerche@engineyard.com
http://github.com/rails/rails/commit/d8fff7d9d5ac4283fcabd7ecf64af5...
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
Tags
Referenced by
- 2838 ActiveSupport::Duration#inspect for zero length duration (from [ab2d6abb55b45543656e2a0238857d3ba8379257]) make #i...
- 2838 ActiveSupport::Duration#inspect for zero length duration (from [d8fff7d9d5ac4283fcabd7ecf64af5709410424f]) make #i...