Class: ActiveRecord::Base
- Inherits:
-
Object
- Object
- ActiveRecord::Base
show all
- Defined in:
- lib/delayed/serialization/active_record.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.yaml_new(klass, tag, val) ⇒ Object
4
5
6
7
8
|
# File 'lib/delayed/serialization/active_record.rb', line 4
def self.yaml_new(klass, tag, val)
klass.find(val['attributes']['id'])
rescue ActiveRecord::RecordNotFound
raise Delayed::DeserializationError
end
|
Instance Method Details
#to_yaml_properties ⇒ Object
10
11
12
|
# File 'lib/delayed/serialization/active_record.rb', line 10
def to_yaml_properties
['@attributes']
end
|