Sha256: b0f2fb9cd244f2e2c95bc70a3dc7cb0831f0a3375bad858fbabad1222f56d3ea

Contents?: true

Size: 289 Bytes

Versions: 6

Compression:

Stored size: 289 Bytes

Contents

# frozen_string_literal: true

# @api private
# @since 0.1.0
module Sidekiq::Portal::CoreExtensions::Timecop
  # @return [void]
  #
  # @api public
  # @since 0.1.0
  def travel(*)
    super.tap do
      Sidekiq::Portal.global.run_all
      Sidekiq::Worker.run_scheduled
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sidekiq_portal-0.3.2 lib/portal/core_extensions/timecop.rb
sidekiq_portal-0.3.1 lib/portal/core_extensions/timecop.rb
sidekiq_portal-0.3.0 lib/portal/core_extensions/timecop.rb
sidekiq_portal-0.2.0 lib/portal/core_extensions/timecop.rb
sidekiq_portal-0.1.1 lib/portal/core_extensions/timecop.rb
sidekiq_portal-0.1.0 lib/portal/core_extensions/timecop.rb