Sha256: 640bae168d0599ff0ecc3c602cd0062a03ca16864f972cac205318be1d019620
Contents?: true
Size: 293 Bytes
Versions: 36
Compression:
Stored size: 293 Bytes
Contents
# frozen_string_literal: true module ActiveRecord module Coders # :nodoc: module JSON # :nodoc: def self.dump(obj) ActiveSupport::JSON.encode(obj) end def self.load(json) ActiveSupport::JSON.decode(json) unless json.blank? end end end end
Version data entries
36 entries across 36 versions & 4 rubygems