Sha256: af97d38201c913e4928c7a47ea9aaf7c9e83b35af230c13ec5027fbe4851cd6b
Contents?: true
Size: 833 Bytes
Versions: 3
Compression:
Stored size: 833 Bytes
Contents
# frozen_string_literal: true require 'adequate_serialization/attribute' require 'adequate_serialization/decorator' require 'adequate_serialization/options' require 'adequate_serialization/serializable' require 'adequate_serialization/serializer' require 'adequate_serialization/steps' require 'adequate_serialization/version' require 'adequate_serialization/steps/passthrough_step' require 'adequate_serialization/steps/serialize_step' module AdequateSerialization class << self def dump(object) if object.is_a?(Hash) object elsif object.respond_to?(:as_json) object.as_json else object end end def hook_into_rails! @hook_into_rails ||= begin require 'adequate_serialization/rails/hook' Rails.hook_in! end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
adequate_serialization-0.1.1 | lib/adequate_serialization.rb |
adequate_serialization-0.1.0 | lib/adequate_serialization.rb |
adequate_serialization-0.0.1 | lib/adequate_serialization.rb |