Skip to content

Commit

Permalink
fix the method signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
renee-travisci committed Jul 1, 2016
1 parent accd8ce commit d8a7da1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/rack/attack.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,19 @@ class << self
def safelist(name, &block)
self.safelists[name] = Safelist.new(name, block)
end
def whitelist

def whitelist(name, &block)
warn "[DEPRECATION] 'whitelist' is deprecated. Please use 'safelist' instead."
safelist
safelist(name, &block)
end

def blocklist(name, &block)
self.blocklists[name] = Blocklist.new(name, block)
end
def blacklist

def blacklist(name, &block)
warn "[DEPRECATION] 'blacklist' is deprecated. Please use 'blocklist' instead."
blocklist
blocklist(name, &block)
end

def throttle(name, options, &block)
Expand Down

0 comments on commit d8a7da1

Please sign in to comment.