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
|
class Base
|
||||||
extend ResqueJobLogging
|
extend ResqueJobLogging
|
||||||
|
|
||||||
def self.perform(*args)
|
# Perform this job. This wrapper method
|
||||||
ActiveRecord::Base.verify_active_connections!
|
def self.perform(*args)
|
||||||
self.perform_delegate(*args)
|
ActiveRecord::Base.verify_active_connections!
|
||||||
|
self.perform_delegate(*args)
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.perform_delegate(*args) # override this
|
# Override this in your Job class.
|
||||||
|
# @abstract
|
||||||
|
def self.perform_delegate(*args)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue