module Sidekiq::Throttled::Web::SummaryFix
Constants
- HEADERS
- JAVASCRIPT
Attributes
enabled[RW]
Public Class Methods
apply!(app)
click to toggle source
# File lib/sidekiq/throttled/web/summary_fix.rb, line 13 def apply!(app) Sidekiq::WebAction.prepend SummaryFix app.get("/throttled/summary_fix") do [200, HEADERS.dup, JAVASCRIPT.dup] end end
Public Instance Methods
display_custom_head()
click to toggle source
# File lib/sidekiq/throttled/web/summary_fix.rb, line 22 def display_custom_head "#{super}#{summary_fix_script if SummaryFix.enabled}" end
Private Instance Methods
summary_fix_script()
click to toggle source
# File lib/sidekiq/throttled/web/summary_fix.rb, line 28 def summary_fix_script src = "#{root_path}throttled/summary_fix" %(<script type="text/javascript" src="#{src}"></script>) end