diff options
author | Vipul A M <vipulnsward@gmail.com> | 2014-10-20 00:26:38 +0530 |
---|---|---|
committer | Vipul A M <vipulnsward@gmail.com> | 2014-10-20 00:26:38 +0530 |
commit | e16592e7443e29a26c3788b8e5427bff169a7869 (patch) | |
tree | 8459b7e73755f9870ce4d9a09928ebe650600f78 /activejob/lib | |
parent | cbaf2190c15346f2304e79e26a6c05cfd51c236e (diff) | |
download | rails-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.rb | 4 |
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. |