1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activejob/lib/active_job
Sam Bostock b4fffc3c68
Teach ActiveJob to set configs on itself
Previously configs of the form `config.active_job.X` were only forwarded to
`ActiveJob::Base`. This teaches Active Job to set them on `ActiveJob` directly
instead, if the setter exists.

For consistency, this more or less mirrors the way that Active Record does it.

Co-authored-by: Adrianna Chang <adrianna.chang@shopify.com>
Co-authored-by: Sam Bostock <sam.bostock@shopify.com>

---

Fix use_big_decimal_serializer Rails 7.1 default

This config should be enabled for new Rails 7.1 apps, or apps that have updated
their config to `load_defaults 7.1`, not disabled.

This also clarifies the config accessor comment.

---

Add contributor documentation comment to load_defaults

The process for introducing a change in behavior in Rails can be confusing to
new contributors, so a comment is added roughly explaining how to do so, and
what belongs in `load_defaults` and `new_framework_defaults`.

This comment is aimed at contributors, not consumers, so it is added within the
method, rather than above it.
2022-07-30 11:11:15 -04:00
..
queue_adapters Update ActiveJob que adapter for compatibility 2022-03-21 13:27:59 +01:00
serializers Add ActiveJob::Serializers::BigDecimalSerializer 2022-07-19 15:31:41 -04:00
arguments.rb Add ActiveJob::Serializers::BigDecimalSerializer 2022-07-19 15:31:41 -04:00
base.rb Standardize nodoc comments 2021-07-29 21:18:07 +00:00
callbacks.rb Remove return_false_on_aborted_enqueue again 2022-07-03 16:23:04 -04:00
configured_job.rb Allow ActiveJob::Base.set to configure job when using .perform_now 2021-10-12 13:53:38 -07:00
core.rb Preserve job.enqueued_at timestamp precision 2022-07-12 18:13:16 -07:00
enqueuing.rb Add Oxford commas [ci-skip] 2022-02-21 11:11:11 -06:00
exceptions.rb retry_on parameter attempts now accepts :unlimited (#41761) 2021-07-28 18:32:19 -04:00
execution.rb Extract ActiveSupport::ExecutionContext out of ActiveRecord::QueryLogs 2021-11-10 09:36:02 +01:00
gem_version.rb Fix #version docs and some typos 2022-03-16 01:48:37 +05:30
instrumentation.rb Add db_runtime to Active Job instrumentation 2022-05-19 14:09:21 -05:00
log_subscriber.rb Add job_id and exception message to ActiveJob retry/discard logging 2022-02-08 10:06:21 -05:00
logging.rb Enable Style/ExplicitBlockArgument cop 2021-09-05 17:06:19 +02:00
queue_adapter.rb Standardize nodoc comments 2021-07-29 21:18:07 +00:00
queue_adapters.rb Add the Active Job TestAdapter to QueueAdapter documentation [ci-skip] 2022-03-24 14:41:58 +01:00
queue_name.rb Standardize nodoc comments 2021-07-29 21:18:07 +00:00
queue_priority.rb [Active Job] rubocop -a --only Layout/EmptyLineAfterMagicComment 2017-07-11 13:12:32 +09:00
railtie.rb Teach ActiveJob to set configs on itself 2022-07-30 11:11:15 -04:00
serializers.rb Add ActiveJob::Serializers::BigDecimalSerializer 2022-07-19 15:31:41 -04:00
test_case.rb [Active Job] rubocop -a --only Layout/EmptyLineAfterMagicComment 2017-07-11 13:12:32 +09:00
test_helper.rb Cross-link API docs [ci-skip] 2022-02-21 11:45:25 -06:00
timezones.rb Standardize nodoc comments 2021-07-29 21:18:07 +00:00
translation.rb Standardize nodoc comments 2021-07-29 21:18:07 +00:00
version.rb Fix #version docs and some typos 2022-03-16 01:48:37 +05:30