Skip to content

Commit

Permalink
default reaction to deny
Browse files Browse the repository at this point in the history
  • Loading branch information
rkh committed Jun 20, 2011
1 parent 6b964cd commit 0010cfb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/rack/protection/base.rb
Expand Up @@ -85,13 +85,11 @@ def random_string(secure = defined? SecureRandom)
random_string false
end

def default_reaction(env)
fail "no default reaction given for #{self.class}"
end

def encrypt(value)
options[:encryptor].hexdigest value.to_s
end

alias default_reaction deny
end
end
end

0 comments on commit 0010cfb

Please sign in to comment.