Module: Sidekiq::Failures::WebExtension::FailuresHelpers

Defined in:
lib/sidekiq/failures/web_extension.rb

Overview

Define the helpers module for Sidekiq 8.0+

Instance Method Summary collapse

Instance Method Details

#safe_relative_time(time) ⇒ Object



56
57
58
59
# File 'lib/sidekiq/failures/web_extension.rb', line 56

def safe_relative_time(time)
  # Pass self (the context with relative_time) to the implementation
  WebExtension.safe_relative_time_implementation.call(time, self)
end