Class: ActiveRecord::Base
- Inherits:
-
Object
- Object
- ActiveRecord::Base
show all
- Defined in:
- lib/delayed/backend/active_record.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.load_for_delayed_job(id) ⇒ Object
4
5
6
7
8
9
10
|
# File 'lib/delayed/backend/active_record.rb', line 4
def self.load_for_delayed_job(id)
if id
find(id)
else
super
end
end
|
Instance Method Details
#dump_for_delayed_job ⇒ Object
12
13
14
|
# File 'lib/delayed/backend/active_record.rb', line 12
def dump_for_delayed_job
"#{self.class};#{id}"
end
|