diff options
author | Robin Dupret <robin.dupret@gmail.com> | 2014-10-31 19:46:43 +0100 |
---|---|---|
committer | Robin Dupret <robin.dupret@gmail.com> | 2014-10-31 19:48:42 +0100 |
commit | aeb431a6ca7cd05f8d29f454a24bf8f5bd5423ae (patch) | |
tree | 317583b2781739a5fd067f6599d4b36bf62af5e2 /activejob/lib/active_job | |
parent | c1a118abc43453e98ba3be06e7f1fbc4afb06d4e (diff) | |
download | rails-aeb431a6ca7cd05f8d29f454a24bf8f5bd5423ae.tar.gz rails-aeb431a6ca7cd05f8d29f454a24bf8f5bd5423ae.tar.bz2 rails-aeb431a6ca7cd05f8d29f454a24bf8f5bd5423ae.zip |
Tiny documentation improvements [ci skip]
Diffstat (limited to 'activejob/lib/active_job')
-rw-r--r-- | activejob/lib/active_job/core.rb | 7 | ||||
-rw-r--r-- | activejob/lib/active_job/enqueuing.rb | 3 |
2 files changed, 4 insertions, 6 deletions
diff --git a/activejob/lib/active_job/core.rb b/activejob/lib/active_job/core.rb index f55db5a588..68d46e6466 100644 --- a/activejob/lib/active_job/core.rb +++ b/activejob/lib/active_job/core.rb @@ -48,8 +48,8 @@ module ActiveJob end end - # Creates a new job instance. Takes as arguments the arguments that - # will be passed to the perform method. + # Creates a new job instance. Takes the arguments that will be + # passed to the perform method. def initialize(*arguments) @arguments = arguments @job_id = SecureRandom.uuid @@ -84,6 +84,3 @@ module ActiveJob end end end - - - diff --git a/activejob/lib/active_job/enqueuing.rb b/activejob/lib/active_job/enqueuing.rb index cca0a2a8d6..53d944021a 100644 --- a/activejob/lib/active_job/enqueuing.rb +++ b/activejob/lib/active_job/enqueuing.rb @@ -22,7 +22,7 @@ module ActiveJob end end - # Reschedule the job to be re-executed. This is useful in combination + # Reschedules the job to be re-executed. This is useful in combination # with the +rescue_from+ option. When you rescue an exception from your job # you can ask Active Job to retry performing your job. # @@ -37,6 +37,7 @@ module ActiveJob # rescue_from(ErrorLoadingSite) do # retry_job queue: :low_priority # end + # # def perform(*args) # # raise ErrorLoadingSite if cannot scrape # end |