lib/rack/throttle/daily.rb in viximo-rack-throttle-0.4.0 vs lib/rack/throttle/daily.rb in viximo-rack-throttle-0.5.0

- old
+ new

@@ -30,15 +30,19 @@ @max_per_hour ||= options[:max_per_day] || options[:max] || 86_400 end alias_method :max_per_window, :max_per_day + def retry_after + "86400" # simplification, because the strategy is not sliding + end + protected ## # @param [Rack::Request] request # @return [String] def cache_key(request) [super, Time.now.strftime('%Y-%m-%d')].join(':') end end -end; end +end; end \ No newline at end of file