Sha256: 0d216cb41ce4145a7eae75736bc314c50b16b288ff38b7a5072180639179b133

Contents?: true

Size: 1010 Bytes

Versions: 1

Compression:

Stored size: 1010 Bytes

Contents

# frozen_string_literal: true

module AdequateSerialization
  class Error < StandardError
    def initialize(message)
      super(message.gsub("\n", ' '))
    end
  end
end

require 'adequate_serialization/attribute'
require 'adequate_serialization/decorator'
require 'adequate_serialization/inline_serializer'
require 'adequate_serialization/options'
require 'adequate_serialization/serializable'
require 'adequate_serialization/serializer'
require 'adequate_serialization/steps'
require 'adequate_serialization/version'

require 'adequate_serialization/steps/step'
require 'adequate_serialization/steps/serialize_step'

if defined?(Rails)
  require 'adequate_serialization/rails/cache_busting'
  require 'adequate_serialization/rails/cache_step'
  require 'adequate_serialization/rails/cache_visualization'
  require 'adequate_serialization/rails/relation_serializer'

  module AdequateSerialization
    Serializer.singleton_class.prepend(CacheBusting)
    ActiveRecord::Base.include(Serializable)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
adequate_serialization-1.0.1 lib/adequate_serialization.rb