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

Version Path
sqewer-10.0.0 lib/sqewer/perform_override.rb
sqewer-9.0.0 lib/sqewer/perform_override.rb
sqewer-8.1.0 lib/sqewer/perform_override.rb
sqewer-8.1.0.pre.1 lib/sqewer/perform_override.rb
sqewer-8.0.3 lib/sqewer/perform_override.rb
sqewer-8.0.2 lib/sqewer/perform_override.rb
sqewer-8.0.1 lib/sqewer/perform_override.rb
sqewer-8.0.0 lib/sqewer/perform_override.rb
sqewer-7.0.0 lib/sqewer/perform_override.rb
sqewer-6.5.1 lib/sqewer/perform_override.rb
sqewer-6.5.0 lib/sqewer/perform_override.rb
sqewer-6.4.1 lib/sqewer/perform_override.rb
sqewer-6.4.0 lib/sqewer/perform_override.rb
sqewer-6.3.0 lib/sqewer/perform_override.rb
sqewer-6.2.2 lib/sqewer/perform_override.rb
sqewer-6.2.1 lib/sqewer/perform_override.rb
sqewer-6.2.0 lib/sqewer/perform_override.rb
sqewer-6.1.0 lib/sqewer/perform_override.rb
sqewer-6.0.6 lib/sqewer/perform_override.rb
sqewer-6.0.5 lib/sqewer/perform_override.rb