Doc
This commit is contained in:
parent
15571ecff0
commit
18138e1507
1 changed files with 7 additions and 4 deletions
|
|
@ -2,12 +2,15 @@ module Job
|
|||
class Base
|
||||
extend ResqueJobLogging
|
||||
|
||||
def self.perform(*args)
|
||||
ActiveRecord::Base.verify_active_connections!
|
||||
self.perform_delegate(*args)
|
||||
# Perform this job. This wrapper method
|
||||
def self.perform(*args)
|
||||
ActiveRecord::Base.verify_active_connections!
|
||||
self.perform_delegate(*args)
|
||||
end
|
||||
|
||||
def self.perform_delegate(*args) # override this
|
||||
# Override this in your Job class.
|
||||
# @abstract
|
||||
def self.perform_delegate(*args)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue