We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 107fd51 + 03c28c7 commit 2c35684Copy full SHA for 2c35684
activesupport/lib/active_support/duration/iso8601_serializer.rb
@@ -35,7 +35,6 @@ def serialize
35
# Return pair of duration's parts and whole duration sign.
36
# Parts are summarized (as they can become repetitive due to addition, etc).
37
# Zero parts are removed as not significant.
38
- # If all parts are negative it will negate all of them and return minus as a sign.
39
def normalize
40
parts = @duration.parts.each_with_object(Hash.new(0)) do |(k, v), p|
41
p[k] += v unless v.zero?
0 commit comments