Sha256: 75a0201df5617496b25cb76ca78d5b2bb7ed854d2fa03a0a9a8dca33108bae82
Contents?: true
Size: 524 Bytes
Versions: 24
Compression:
Stored size: 524 Bytes
Contents
# This module enables the acceptance of kwargs for the perform method inside # of ActiveJob::Execution (only needed on ActiveJob versions < 5) module PerformWithKeywords def perform_now deserialize_arguments_if_needed run_callbacks :perform do args_with_symbolized_options = arguments.map do |a| a.respond_to?(:symbolize_keys) ? a.symbolize_keys : a end perform(*args_with_symbolized_options) end rescue => exception rescue_with_handler(exception) || raise(exception) end end
Version data entries
24 entries across 24 versions & 1 rubygems