lib/rails_units/time.rb in rails-units-1.6.0 vs lib/rails_units/time.rb in rails-units-1.7.1
- old
+ new
@@ -9,15 +9,15 @@
alias unit_time_at at
end
# Convert a duration to a Time value by considering the duration to be the number of seconds since the
# epoch
- def self.at(arg, ms = 0)
+ def self.at(arg)
case arg
when Unit
unit_time_at(arg.to("s").scalar)
else
- unit_time_at(arg, ms)
+ unit_time_at(arg)
end
end
def to_unit(other = nil)
other ? Unit.new(self).to(other) : Unit.new(self)