Skip to content

Commit

Permalink
Merge pull request #16944 from akshay-vishnoi/docs-rails-4point2
Browse files Browse the repository at this point in the history
[ci skip] AJ docs fixes
  • Loading branch information
rafaelfranca committed Sep 17, 2014
2 parents 168c0c1 + 9fddcdd commit 1bf1386
Show file tree
Hide file tree
Showing 14 changed files with 22 additions and 22 deletions.
12 changes: 6 additions & 6 deletions activejob/lib/active_job/callbacks.rb
Expand Up @@ -36,7 +36,7 @@ module ClassMethods
# def perform(video_id)
# Video.find(video_id).process
# end
# end
# end
#
def before_perform(*filters, &blk)
set_callback(:perform, :before, *filters, &blk)
Expand All @@ -55,7 +55,7 @@ def before_perform(*filters, &blk)
# def perform(video_id)
# Video.find(video_id).process
# end
# end
# end
#
def after_perform(*filters, &blk)
set_callback(:perform, :after, *filters, &blk)
Expand All @@ -75,7 +75,7 @@ def after_perform(*filters, &blk)
# def perform(video_id)
# Video.find(video_id).process
# end
# end
# end
#
def around_perform(*filters, &blk)
set_callback(:perform, :around, *filters, &blk)
Expand All @@ -94,7 +94,7 @@ def around_perform(*filters, &blk)
# def perform(video_id)
# Video.find(video_id).process
# end
# end
# end
#
def before_enqueue(*filters, &blk)
set_callback(:enqueue, :before, *filters, &blk)
Expand All @@ -113,7 +113,7 @@ def before_enqueue(*filters, &blk)
# def perform(video_id)
# Video.find(video_id).process
# end
# end
# end
#
def after_enqueue(*filters, &blk)
set_callback(:enqueue, :after, *filters, &blk)
Expand All @@ -134,7 +134,7 @@ def after_enqueue(*filters, &blk)
# def perform(video_id)
# Video.find(video_id).process
# end
# end
# end
#
def around_enqueue(*filters, &blk)
set_callback(:enqueue, :around, *filters, &blk)
Expand Down
2 changes: 1 addition & 1 deletion activejob/lib/active_job/core.rb
Expand Up @@ -13,7 +13,7 @@ module Core
# Job Identifier
attr_accessor :job_id

# Queue on which the job should be run on.
# Queue in which the job will reside.
attr_writer :queue_name
end

Expand Down
8 changes: 4 additions & 4 deletions activejob/lib/active_job/enqueuing.rb
Expand Up @@ -5,9 +5,9 @@ module Enqueuing
extend ActiveSupport::Concern

module ClassMethods
# Push a job onto the queue. The arguments must be legal JSON types
# Push a job onto the queue. The arguments must be legal JSON types
# (string, int, float, nil, true, false, hash or array) or
# GlobalID::Identification instances. Arbitrary Ruby objects
# GlobalID::Identification instances. Arbitrary Ruby objects
# are not supported.
#
# Returns an instance of the job class queued with args available in
Expand All @@ -22,7 +22,7 @@ def job_or_instantiate(*args)
end
end

# Reschedule the job to be re-executed. This is usefull in combination
# Reschedule 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.
#
Expand All @@ -45,7 +45,7 @@ def retry_job(options={})
enqueue options
end

# Equeue the job to be performed by the queue adapter.
# Enqueues the job to be performed by the queue adapter.
#
# ==== Options
# * <tt>:wait</tt> - Enqueues the job with the specified delay
Expand Down
2 changes: 1 addition & 1 deletion activejob/lib/active_job/execution.rb
Expand Up @@ -22,7 +22,7 @@ def execute(job_data) #:nodoc:
end

# Performs the job immediately. The job is not sent to the queueing adapter
# and will block the execution until it's finished.
# but directly executed by blocking the execution of others until it's finished.
#
# MyJob.new(*args).perform_now
def perform_now
Expand Down
2 changes: 1 addition & 1 deletion activejob/lib/active_job/logging.rb
Expand Up @@ -50,7 +50,7 @@ def logger_tagged_by_active_job?
logger.formatter.current_tags.include?("ActiveJob")
end

class LogSubscriber < ActiveSupport::LogSubscriber
class LogSubscriber < ActiveSupport::LogSubscriber #:nodoc:
def enqueue(event)
info do
job = event.payload[:job]
Expand Down
Expand Up @@ -14,7 +14,7 @@ def enqueue_at(job, timestamp)
end
end

class JobWrapper
class JobWrapper #:nodoc:
class << self
def perform(job_data)
Base.execute job_data
Expand Down
Expand Up @@ -13,7 +13,7 @@ def enqueue_at(job, timestamp)
end
end

class JobWrapper
class JobWrapper #:nodoc:
def perform(job_data)
Base.execute(job_data)
end
Expand Down
2 changes: 1 addition & 1 deletion activejob/lib/active_job/queue_adapters/qu_adapter.rb
Expand Up @@ -15,7 +15,7 @@ def enqueue_at(job, timestamp, *args)
end
end

class JobWrapper < Qu::Job
class JobWrapper < Qu::Job #:nodoc:
def initialize(job_data)
@job_data = job_data
end
Expand Down
2 changes: 1 addition & 1 deletion activejob/lib/active_job/queue_adapters/que_adapter.rb
Expand Up @@ -13,7 +13,7 @@ def enqueue_at(job, timestamp)
end
end

class JobWrapper < Que::Job
class JobWrapper < Que::Job #:nodoc:
def run(job_data)
Base.execute job_data
end
Expand Down
Expand Up @@ -28,7 +28,7 @@ def build_queue(queue_name)
end
end

class JobWrapper
class JobWrapper #:nodoc:
class << self
def perform(job_data)
Base.execute job_data
Expand Down
2 changes: 1 addition & 1 deletion activejob/lib/active_job/queue_adapters/resque_adapter.rb
Expand Up @@ -29,7 +29,7 @@ def enqueue_at(job, timestamp)
end
end

class JobWrapper
class JobWrapper #:nodoc:
class << self
def perform(job_data)
Base.execute job_data
Expand Down
2 changes: 1 addition & 1 deletion activejob/lib/active_job/queue_adapters/sidekiq_adapter.rb
Expand Up @@ -23,7 +23,7 @@ def enqueue_at(job, timestamp)
end
end

class JobWrapper
class JobWrapper #:nodoc:
include Sidekiq::Worker

def perform(job_data)
Expand Down
Expand Up @@ -19,7 +19,7 @@ def enqueue_at(job, timestamp)
end
end

class JobWrapper
class JobWrapper #:nodoc:
include Sneakers::Worker
from_queue 'default'

Expand Down
Expand Up @@ -13,7 +13,7 @@ def enqueue_at(job, timestamp)
end
end

class JobWrapper
class JobWrapper #:nodoc:
include SuckerPunch::Job

def perform(job_data)
Expand Down

0 comments on commit 1bf1386

Please sign in to comment.