Sha256: 6b62e707bfcefaef710f1c7f20bba6cad00a85060222c270d2a3d16cb2ab6499
Contents?: true
Size: 460 Bytes
Versions: 1
Compression:
Stored size: 460 Bytes
Contents
# frozen_string_literal: true module JSONAPIHelpers module Serializers module Deserializer def self.parse(params) # Parse the params hash and "flatten" the structure parsed_params = JSONAPIHelpers.config.deserializer_klass.jsonapi_parse(params) # Pass the hash to a params klass where normal whitelisting of params can be made JSONAPIHelpers.config.params_klass.new(parsed_params || {}) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jsonapi_helpers-0.2.0 | lib/jsonapi_helpers/serializers/deserializer.rb |