Class: ActiveRecord::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/delayed/backend/active_record.rb

Direct Known Subclasses

Delayed::Backend::ActiveRecord::Job

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_jobObject



12
13
14
# File 'lib/delayed/backend/active_record.rb', line 12

def dump_for_delayed_job
  "#{self.class};#{id}"
end