module SidetiqTimezone::Schedulable::ClassMethods

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

Public Instance Methods

included(klass) click to toggle source
Calls superclass method
# File lib/sidetiq-timezone/schedulable.rb, line 8
def included(klass)
  super
  Sidetiq.clock.time_zone ||= Time.zone
end