Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

period doesnt require counter argument

  • Loading branch information...
commit 5c35a20f810924678836e07ebb8a8a333fe4b822 1 parent 6af463a
@blahed authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/von/config.rb
View
4 lib/von/config.rb
@@ -77,12 +77,12 @@ def period_defined_for?(key, period)
def set_period(field, period, length)
@periods[field] ||= {}
- @periods[field][period.to_sym] = Period.new(field, period, length)
+ @periods[field][period.to_sym] = Period.new(period, length)
end
def set_best(field, time_unit)
@bests[field] = [ time_unit ].flatten.map { |u|
- Period.new(field, Period::TIME_PERIODS[u])
+ Period.new(u)
}
end
Please sign in to comment.
Something went wrong with that request. Please try again.