lib/rack/throttle/hourly.rb in rack-throttle-0.4.2 vs lib/rack/throttle/hourly.rb in rack-throttle-0.5.0
- old
+ new
@@ -24,10 +24,10 @@
def initialize(app, options = {})
super
end
##
- def max_per_hour
+ def max_per_hour(request = nil)
@max_per_hour ||= options[:max_per_hour] || options[:max] || 3_600
end
alias_method :max_per_window, :max_per_hour