Sha256: 640bae168d0599ff0ecc3c602cd0062a03ca16864f972cac205318be1d019620

Contents?: true

Size: 293 Bytes

Versions: 41

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

41 entries across 41 versions & 5 rubygems

Version Path
minato_ruby_api_client-0.2.2 vendor/bundle/ruby/3.2.0/gems/activerecord-7.1.3.4/lib/active_record/coders/json.rb
activerecord-8.0.1 lib/active_record/coders/json.rb
activerecord-8.0.0.1 lib/active_record/coders/json.rb
activerecord-7.2.2.1 lib/active_record/coders/json.rb
activerecord-7.1.5.1 lib/active_record/coders/json.rb
activerecord-8.0.0 lib/active_record/coders/json.rb
activerecord-7.2.2 lib/active_record/coders/json.rb
activerecord-7.1.5 lib/active_record/coders/json.rb
activerecord-8.0.0.rc2 lib/active_record/coders/json.rb
activerecord-7.2.1.2 lib/active_record/coders/json.rb
activerecord-7.1.4.2 lib/active_record/coders/json.rb
activerecord-8.0.0.rc1 lib/active_record/coders/json.rb
activerecord-7.2.1.1 lib/active_record/coders/json.rb
activerecord-7.1.4.1 lib/active_record/coders/json.rb
activerecord-8.0.0.beta1 lib/active_record/coders/json.rb
omg-activerecord-8.0.0.alpha9 lib/active_record/coders/json.rb
omg-activerecord-8.0.0.alpha8 lib/active_record/coders/json.rb
omg-activerecord-8.0.0.alpha7 lib/active_record/coders/json.rb
omg-activerecord-8.0.0.alpha4 lib/active_record/coders/json.rb
omg-activerecord-8.0.0.alpha3 lib/active_record/coders/json.rb