aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/lib
diff options
context:
space:
mode:
authorVipul A M <vipulnsward@gmail.com>2014-10-20 00:26:38 +0530
committerVipul A M <vipulnsward@gmail.com>2014-10-20 00:26:38 +0530
commite16592e7443e29a26c3788b8e5427bff169a7869 (patch)
tree8459b7e73755f9870ce4d9a09928ebe650600f78 /activejob/lib
parentcbaf2190c15346f2304e79e26a6c05cfd51c236e (diff)
downloadrails-e16592e7443e29a26c3788b8e5427bff169a7869.tar.gz
rails-e16592e7443e29a26c3788b8e5427bff169a7869.tar.bz2
rails-e16592e7443e29a26c3788b8e5427bff169a7869.zip
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 8f4b37222a..7a64bb9392 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.