| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
supports it.
|
|
|
| |
Delayed Job is mentioned multiple times in the document, but it is not linked from anywhere.
|
|
|
|
| |
ApplicationJob should be inherits ActiveJob::Base
|
|\
| |
| |
| |
| | |
albertoalmagro/albertoalmagro/prefer-rails-command-over-bin-rails
Prefer rails command over bin/rails
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
As discussed in #33203 rails command already looks for, and runs,
bin/rails if it is present.
We were mixing recommendations within guides and USAGE guidelines,
in some files we recommended using rails, in others bin/rails and
in some cases we even had both options mixed together.
|
|/
|
|
|
| |
http links will be redirected to the https version, but still better to
just directly link to the https version.
|
|
|
|
|
|
|
| |
[ci skip] A regular expression was used to find a lot of missing Oxford
commas and add them. The regular expression was as follows.
", ([a-zA-Z0-9.\`:'\"]+ ){1,6}(or|and) "
|
|
|
| |
`it's` -> `its`
|
|
|
| |
Fixes a typo
|
|\
| |
| | |
Improve ActiveJob custom argument serializers #30941
|
| |
| |
| |
| |
| |
| | |
Add `:nodoc:` to `ActiveJob::Serializers`
Add `:doc:` to `ActiveJob::Serializers::ObjectSerializer#klass`
Express `ActiveJob::Serializers::ObjectSerializer#klass` as private method
|
| | |
|
|/
|
|
|
|
| |
Skipping over 2.4.0 to sidestep the `"symbol_from_string".to_sym.dup` bug.
References #32028
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
We can speed up things for the supported types by keeping the code in the
way it was.
We can also avoid to loop trough all serializers in the deserialization by
trying to access the class already in the Hash.
We could also speed up the custom serialization if we define the class
that is going to be serialized when registering the serializers, but
that will remove the possibility of defining a serialzer for a
superclass and have the subclass serialized using it.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
* Add Sneakers link to documentation list.
|
| |
|
| |
|
|
|
|
| |
The advice for symbol/block form is taken from the Active Record guides.
|
|
|
|
| |
[ci skip]
|
| |
|
|
|
|
| |
[ci skip]
|
|
|
| |
The hyphenated form "back-end" only appears once in this guide; elsewhere, the un-hyphenated form "backend" is used consistently.
|
|
|
|
| |
The immediate runner is no longer default, the async adapter is.
|
|
|
| |
@prathamesh-sonpatki
|
|
|
|
|
|
|
|
| |
[ci skip] Added note on child class maintaining parent's queue adapter.
[ci skip] Added note on child class maintaining parent's queue adapter.
[ci skip] removed documentation for child class inheriting the queue adapter.
|
| |
|
| |
|
| |
|
|
|
|
| |
If you can't start your queue, you won't process much. This change adds external links to the Queue backends that have Active Job specific docs.
|
|
|
|
|
| |
Correct spelling is "Esperanto":
https://en.wikipedia.org/wiki/Esperanto
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
A section explaining how to pass arguments to Jobs has been added.
[ci skip] How to pass arguments to ActiveJob Jobs
Removed the "how to pass arguments" from what you will know section
[ci skip] improving Enqueue Job section
Using GuestsCleanupJob rather than MyJob for coherence.
[ci skip] Passing args section merged with enqueuing jobs
Passing args is now explained through examples withing Enqueuing the Jobs section
[ci skip] Unnecessary example removed
[ci skip] Typo fixed (missing as)
|
|\
| |
| | |
Make ActiveJob locale aware
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
When `#perform_later` is called the locale isn't stored on the
queue, which results in a locale reset when the job is performed.
An example of the problem:
I18n.locale = 'de'
HelloJob.perform_now # german message, correct
but
I18n.locale = 'de'
HelloJob.perform_later # english message, incorrect
This PR attaches the current I18n.locale to every job during the
serialization process. It is then restored during deserialization
and used to perform the job with the correct locale.
It falls back to the default locale if no serialized locale is
found in order to provide backward compatibility with previously
stored jobs. It is not necessary to clear the queue for the update.
|
|/
|
|
| |
[ci skip]
|
|
|
|
| |
By default Rails automaticaly loads all files under the app directory
|
|
|
|
|
|
| |
an additional step [ci skip]
Normalized use of 'queueing'/'queuing' in the document.
|
| |
|
| |
|
|
|
|
| |
[ci skip]
|
|\ |
|
| |
| |
| |
| |
| | |
Before: http://take.ms/z39h2
After: http://take.ms/Mo0G3
|
| | |
|
|/
|
|
| |
- Changed `IN` to `ON` in all note sentences in guides.
|
|\ |
|