Sha256: e053fa20d21fb0eb6e509d15ff1d57d64fafb36910bb2bbac3eeedb2f99f7574
Contents?: true
Size: 323 Bytes
Versions: 1
Compression:
Stored size: 323 Bytes
Contents
module RackAttackAdmin class KeysController < RackAttackAdmin::ApplicationController def destroy orig_key = params[:id] unprefixed_key = Rack::Attack.unprefix_key(orig_key) Rack::Attack.cache.delete unprefixed_key redirect_to root_path, success: "Deleted: #{unprefixed_key}" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rack_attack_admin-0.1.0 | app/controllers/rack_attack_admin/keys_controller.rb |