class ActiveRecord::Base
Public Class Methods
yaml_new(klass, tag, val)
click to toggle source
# File lib/apartment/delayed_job/active_record.rb, line 7 def self.yaml_new(klass, tag, val) Apartment::Database.process(val['database']) do klass.find(val['attributes']['id']) end rescue ActiveRecord::RecordNotFound raise Delayed::DeserializationError end
Public Instance Methods
to_yaml_properties()
click to toggle source
# File lib/apartment/delayed_job/active_record.rb, line 15 def to_yaml_properties ['@attributes', '@database'] # add in database attribute for serialization end