aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/lib
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2014-10-20 09:04:39 +0200
committerYves Senn <yves.senn@gmail.com>2014-10-20 09:04:39 +0200
commit74a527cc63ef56f3d0a42cf638299958dc7cb08c (patch)
tree7812d9d48f6733d42bf13bf29467e3a6238d8b0e /activejob/lib
parente62554607c86a33e5c56107d98a366531ff5c7c9 (diff)
parente16592e7443e29a26c3788b8e5427bff169a7869 (diff)
downloadrails-74a527cc63ef56f3d0a42cf638299958dc7cb08c.tar.gz
rails-74a527cc63ef56f3d0a42cf638299958dc7cb08c.tar.bz2
rails-74a527cc63ef56f3d0a42cf638299958dc7cb08c.zip
Merge pull request #17329 from vipulnsward/mention-perform-later-docs
Mention `perform_now` in AJ base docs to specify how to immediately invoke a job [ci skip]
Diffstat (limited to 'activejob/lib')
-rw-r--r--activejob/lib/active_job/base.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/activejob/lib/active_job/base.rb b/activejob/lib/active_job/base.rb
index f926d8fad5..913e221d89 100644
--- a/activejob/lib/active_job/base.rb
+++ b/activejob/lib/active_job/base.rb
@@ -44,6 +44,10 @@ module ActiveJob #:nodoc:
#
# More information can be found in ActiveJob::Core::ClassMethods#set
#
+ # A job can also be processed synchronously:
+ #
+ # ProcessPhotoJob.perform_now(photo)
+ #
# == Exceptions
#
# * DeserializationError - Error class for deserialization errors.