lib/sidekiq_simple_delay.rb
def enable_delay!
      enable_delay_instance!(Module)

      return unless defined?(::ActiveSupport)

      ActiveSupport.on_load(:active_record) do
        SidekiqSimpleDelay.enable_delay_active_record!
      end

      ActiveSupport.on_load(:action_mailer) do
        SidekiqSimpleDelay.enable_delay_application_mailer!
      end
    end
# Adds simple_delay class methods to all classes
Adds simple_delay class methods to all classes
Adds simple_delay class methods to all classes
def enable_delay!
      enable_delay_instance!(Module)
      return unless defined?(::ActiveSupport)
      ActiveSupport.on_load(:active_record) do
        SidekiqSimpleDelay.enable_delay_active_record!
      end
      ActiveSupport.on_load(:action_mailer) do
        SidekiqSimpleDelay.enable_delay_application_mailer!
      end
    end
def enable_delay! enable_delay_instance! ( Module ) return unless defined? ( :: ActiveSupport ) ActiveSupport . on_load ( :active_record ) do SidekiqSimpleDelay . enable_delay_active_record! end ActiveSupport . on_load ( :action_mailer ) do SidekiqSimpleDelay . enable_delay_application_mailer! end end
Adds simple_delay class methods to all classes
Adds simple_delay class methods to all classes