Sha256: 1abecdb276d4f5e0bd700c670012ab9ddd539403cea6c2b92a265c205c403270
Contents?: true
Size: 609 Bytes
Versions: 1
Compression:
Stored size: 609 Bytes
Contents
load 'rack/attack_extensions.rb' if Rails.env.development? module RackAttackAdmin class RackAttackController < RackAttackAdmin::ApplicationController # Web version of lib/tasks/rack_attack_admin_tasks.rake def index @default_banned_ip = Rack::Attack::BannedIp.new(bantime: '60 m') @counters_h = Rack::Attack.counters_h. without(*Rack::Attack::BannedIps.keys) render end def current_request respond_to do |format| format.json do render json: current_request_rack_attack_stats end format.html end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rack_attack_admin-0.1.2 | app/controllers/rack_attack_admin/rack_attack_controller.rb |