lib/rack/throttle/daily.rb in rack-throttle-0.4.2 vs lib/rack/throttle/daily.rb in rack-throttle-0.5.0

- old
+ new

@@ -24,10 +24,10 @@ def initialize(app, options = {}) super end ## - def max_per_day + def max_per_day(request = nil) @max_per_hour ||= options[:max_per_day] || options[:max] || 86_400 end alias_method :max_per_window, :max_per_day