diff options
author | Jeroen van Baarsen <jeroenvanbaarsen@gmail.com> | 2015-02-22 21:52:58 +0100 |
---|---|---|
committer | Jeroen van Baarsen <jeroenvanbaarsen@gmail.com> | 2015-03-23 22:37:11 +0100 |
commit | 929a794a317666e4d29954e4f071c1dd57482aa7 (patch) | |
tree | 44804aa0548b42c7942b5613826cd4a1c05d7444 /guides/source | |
parent | b6c038b600487b1adcf8f5e69ba70a992b07e195 (diff) | |
download | rails-929a794a317666e4d29954e4f071c1dd57482aa7.tar.gz rails-929a794a317666e4d29954e4f071c1dd57482aa7.tar.bz2 rails-929a794a317666e4d29954e4f071c1dd57482aa7.zip |
Add explicit base class for ActiveJob jobs
* Jobs generated now inherent from ApplicationJob
* ApplicationJob inherents from ActiveJob::Base
* Added entry to changelog
Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/upgrading_ruby_on_rails.md | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/guides/source/upgrading_ruby_on_rails.md b/guides/source/upgrading_ruby_on_rails.md index 05c46a9e76..5a6f267360 100644 --- a/guides/source/upgrading_ruby_on_rails.md +++ b/guides/source/upgrading_ruby_on_rails.md @@ -75,6 +75,21 @@ warning by adding the following configuration to your `config/application.rb`: See [#17227](https://github.com/rails/rails/pull/17227) for more details. +### ActiveJob jobs now inherent from ApplicationJob by default + +In Rails 4.2 an ActiveJob inherents from `ActiveJob::Base`. In Rails 5.0 this +behaviour has changed to now inherent from `ApplicationJob`. + +When upgrading from Rails 4.2 to Rails 5.0 you need to create a file +`application_job.rb` in `app/jobs/` and add the following content: + +``` +class ApplicationJob < ActiveJob::Base +end +``` + +See [#19034](https://github.com/rails/rails/pull/19034) for more details + Upgrading from Rails 4.1 to Rails 4.2 ------------------------------------- |