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
.yaml_new(klass, tag, val) ⇒ Object
6
7
8
9
10
|
# File 'lib/delayed/backend/active_record.rb', line 6
def self.yaml_new(klass, tag, val)
klass.find(val['attributes']['id'])
rescue ActiveRecord::RecordNotFound
nil
end
|
Instance Method Details
#to_yaml_properties ⇒ Object
12
13
14
|
# File 'lib/delayed/backend/active_record.rb', line 12
def to_yaml_properties
['@attributes']
end
|