lib/numeric.rb in to_duration-1.1.1 vs lib/numeric.rb in to_duration-1.2.0
- old
+ new
@@ -1,5 +1,5 @@
class Numeric
def to_duration(options = {})
- ToDuration::Converter.call(to_i, options)
+ ToDuration::Duration.new(self).to_s(options)
end
end