Sha256: c2704088b836fd49cc00614fb320ff62d4c6f5767e099cc73be83da7e111a7e5
Contents?: true
Size: 580 Bytes
Versions: 5
Compression:
Stored size: 580 Bytes
Contents
# frozen_string_literal: true module Sidekiq module Throttled module Web module SummaryFix HTML = File.read("#{__dir__}/summary_fix.html").freeze class << self attr_accessor :enabled def apply!(app) if "4.2.0" <= Sidekiq::VERSION Sidekiq::WebAction.send(:prepend, SummaryFix) else app.send(:prepend, SummaryFix) end end end def display_custom_head "#{super}#{HTML if SummaryFix.enabled}" end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems