Module: Sidetiq::Timezone::Schedulable::ClassMethods

Included in:
Schedulable
Defined in:
lib/sidetiq/timezone/schedulable.rb

Overview

Automatically sets the application time zone for Sidetiq when a (first) worker is defined.

Instance Method Summary collapse

Instance Method Details

#included(klass) ⇒ Object



9
10
11
12
# File 'lib/sidetiq/timezone/schedulable.rb', line 9

def included(klass)
  super
  Sidetiq.clock.time_zone ||= Time.zone
end