blob: a69b38487e52fcbd94b89970deeac9331b0832cd (
plain) (
tree)
|
|
# frozen_string_literal: true
module ActiveRecord
module Coders # :nodoc:
class 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
|