Class: GoodJob::BatchRecord::PropertySerializer

Inherits:
Object
  • Object
show all
Defined in:
app/models/good_job/batch_record.rb

Class Method Summary collapse

Class Method Details

.dump(value) ⇒ Object



78
79
80
# File 'app/models/good_job/batch_record.rb', line 78

def self.dump(value)
  ActiveJob::Arguments.serialize([value]).first
end

.load(value) ⇒ Object



82
83
84
# File 'app/models/good_job/batch_record.rb', line 82

def self.load(value)
  ActiveJob::Arguments.deserialize([value]).first
end