Sha256: d8d1bfbed47bf166049aaa23b8c8168b74930d1cd83cb9a4e4244bb6bb74fa38

Contents?: true

Size: 380 Bytes

Versions: 9

Compression:

Stored size: 380 Bytes

Contents

module ActiveModel
  class Serializer
    class Adapter
      class FlattenJson < Json
        def serializable_hash(options = {})
          super
          @result
        end

        private

        # no-op: FlattenJson adapter does not include meta data, because it does not support root.
        def include_meta(json)
          json
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
cheap_ams-0.10.8 lib/active_model/serializer/adapter/flatten_json.rb
cheap_ams-0.10.7 lib/active_model/serializer/adapter/flatten_json.rb
cheap_ams-0.10.6 lib/active_model/serializer/adapter/flatten_json.rb
cheap_ams-0.10.5 lib/active_model/serializer/adapter/flatten_json.rb
cheap_ams-0.10.4 lib/active_model/serializer/adapter/flatten_json.rb
cheap_ams-0.10.3 lib/active_model/serializer/adapter/flatten_json.rb
cheap_ams-0.10.2 lib/active_model/serializer/adapter/flatten_json.rb
cheap_ams-0.10.1 lib/active_model/serializer/adapter/flatten_json.rb
cheap_ams-0.10.0.rc2 lib/active_model/serializer/adapter/flatten_json.rb