Class: Noticed::TextCoder
- Inherits:
-
Object
- Object
- Noticed::TextCoder
- Defined in:
- lib/noticed/text_coder.rb
Class Method Summary collapse
Class Method Details
.dump(data) ⇒ Object
11 12 13 14 |
# File 'lib/noticed/text_coder.rb', line 11 def self.dump(data) return if data.nil? ActiveJob::Arguments.send(:serialize_argument, data).to_json end |
.load(data) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/noticed/text_coder.rb', line 3 def self.load(data) return if data.nil? # Text columns need JSON parsing data = JSON.parse(data) ActiveJob::Arguments.send(:deserialize_argument, data) end |