aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorMatthew Draper <matthew@trebex.net>2015-03-30 23:01:16 +1030
committerMatthew Draper <matthew@trebex.net>2015-03-30 23:04:25 +1030
commitcb012467214f6e4bb1ac3987554bb75020b4796b (patch)
treea2b16c15b50bc40da24f2d8d6e03aef88557974f /guides
parente2a96c071216d14659294a5a7645878656c30916 (diff)
parent929a794a317666e4d29954e4f071c1dd57482aa7 (diff)
downloadrails-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')
-rw-r--r--guides/source/upgrading_ruby_on_rails.md15
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
-------------------------------------