Module: ActiveJob

Extended by:
ActiveSupport::Autoload
Defined in:
activejob/lib/active_job.rb,
activejob/lib/active_job/base.rb,
activejob/lib/active_job/core.rb,
activejob/lib/active_job/logging.rb,
activejob/lib/active_job/railtie.rb,
activejob/lib/active_job/version.rb,
activejob/lib/active_job/arguments.rb,
activejob/lib/active_job/callbacks.rb,
activejob/lib/active_job/test_case.rb,
activejob/lib/active_job/timezones.rb,
activejob/lib/active_job/deprecator.rb,
activejob/lib/active_job/exceptions.rb,
activejob/lib/active_job/queue_name.rb,
activejob/lib/active_job/gem_version.rb,
activejob/lib/active_job/serializers.rb,
activejob/lib/active_job/test_helper.rb,
activejob/lib/active_job/translation.rb,
activejob/lib/active_job/queue_adapter.rb,
activejob/lib/active_job/log_subscriber.rb,
activejob/lib/active_job/queue_adapters.rb,
activejob/lib/active_job/queue_priority.rb,
activejob/lib/active_job/instrumentation.rb,
activejob/lib/active_job/queue_adapters/test_adapter.rb,
activejob/lib/active_job/serializers/date_serializer.rb,
activejob/lib/active_job/serializers/time_serializer.rb,
activejob/lib/active_job/queue_adapters/async_adapter.rb,
activejob/lib/active_job/serializers/range_serializer.rb,
activejob/lib/active_job/queue_adapters/inline_adapter.rb,
activejob/lib/active_job/queue_adapters/resque_adapter.rb,
activejob/lib/active_job/serializers/module_serializer.rb,
activejob/lib/active_job/serializers/object_serializer.rb,
activejob/lib/active_job/serializers/symbol_serializer.rb,
activejob/lib/active_job/queue_adapters/sidekiq_adapter.rb,
activejob/lib/active_job/queue_adapters/sneakers_adapter.rb,
activejob/lib/active_job/serializers/duration_serializer.rb,
activejob/lib/active_job/serializers/date_time_serializer.rb,
activejob/lib/active_job/queue_adapters/backburner_adapter.rb,
activejob/lib/active_job/queue_adapters/delayed_job_adapter.rb,
activejob/lib/active_job/serializers/big_decimal_serializer.rb,
activejob/lib/active_job/serializers/time_object_serializer.rb,
activejob/lib/active_job/queue_adapters/sucker_punch_adapter.rb,
activejob/lib/active_job/queue_adapters/queue_classic_adapter.rb,
activejob/lib/active_job/serializers/time_with_zone_serializer.rb

Overview

:nodoc:

Defined Under Namespace

Modules: Arguments, Callbacks, Core, Exceptions, Instrumentation, Logging, QueueAdapter, QueueAdapters, QueueName, QueuePriority, Serializers, TestHelper, Timezones, Translation, VERSION Classes: Base, DeserializationError, LogSubscriber, Railtie, SerializationError, TestCase

Instance Attribute Summary collapse

Class Method Summary collapse

Methods included from ActiveSupport::Autoload

autoload, autoload_at, autoload_under, eager_autoload, eager_load!, extended

Instance Attribute Details

#use_big_decimal_serializerObject

:singleton-method: If false, Rails will preserve the legacy serialization of BigDecimal job arguments as Strings. If true, Rails will use the new BigDecimalSerializer to (de)serialize BigDecimal losslessly. Legacy serialization will be removed in Rails 7.2, along with this config.



53
54
55
# File 'activejob/lib/active_job.rb', line 53

def use_big_decimal_serializer
  @use_big_decimal_serializer
end

#verbose_enqueue_logsObject

:singleton-method:

Specifies if the methods calling background job enqueue should be logged below their relevant enqueue log lines. Defaults to false.



61
62
63
# File 'activejob/lib/active_job.rb', line 61

def verbose_enqueue_logs
  @verbose_enqueue_logs
end

Class Method Details

.deprecatorObject

:nodoc:



4
5
6
# File 'activejob/lib/active_job/deprecator.rb', line 4

def self.deprecator # :nodoc:
  @deprecator ||= ActiveSupport::Deprecation.new
end

.gem_versionObject

Returns the currently loaded version of Active Job as a Gem::Version.



5
6
7
# File 'activejob/lib/active_job/gem_version.rb', line 5

def self.gem_version
  Gem::Version.new VERSION::STRING
end

.versionObject

Returns the currently loaded version of Active Job as a Gem::Version.



7
8
9
# File 'activejob/lib/active_job/version.rb', line 7

def self.version
  gem_version
end