Class: AsyncTransaction::Base
Constant Summary
collapse
- REQUESTED =
'requested'
- COMPLETED =
'completed'
- DELETE_COMPLETED_AFTER =
1.month
Instance Method Summary
collapse
descendants_using_encryption, lockbox_options, #timestamp_attributes_for_update_in_model, #valid?
Instance Method Details
29
30
31
|
# File 'app/models/async_transaction/base.rb', line 29
def parsed_metadata
JSON.parse(metadata)
end
|
25
26
27
|
# File 'app/models/async_transaction/base.rb', line 25
def serialize_metadata
self.metadata = metadata.to_json unless metadata.is_a?(String)
end
|