diff options
author | Matthew Draper <matthew@trebex.net> | 2015-03-30 23:01:16 +1030 |
---|---|---|
committer | Matthew Draper <matthew@trebex.net> | 2015-03-30 23:04:25 +1030 |
commit | cb012467214f6e4bb1ac3987554bb75020b4796b (patch) | |
tree | a2b16c15b50bc40da24f2d8d6e03aef88557974f /guides/source | |
parent | e2a96c071216d14659294a5a7645878656c30916 (diff) | |
parent | 929a794a317666e4d29954e4f071c1dd57482aa7 (diff) | |
download | rails-cb012467214f6e4bb1ac3987554bb75020b4796b.tar.gz rails-cb012467214f6e4bb1ac3987554bb75020b4796b.tar.bz2 rails-cb012467214f6e4bb1ac3987554bb75020b4796b.zip |
Merge pull request #19034 from jvanbaarsen/explicit-job-base-class
Add explicit base class for ActiveJob jobs
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 ------------------------------------- |