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

- old
+ new

@@ -26,9 +26,13 @@ ## def max_per_minute @max_per_hour ||= options[:max_per_minute] || options[:max] || 60 end + + def retry_after + "60" # simplification, because the strategy is not sliding + end alias_method :max_per_window, :max_per_minute protected