Sha256: 9305e4c57375ccee4a1e84d2f7a995cbaa0cddfb2c74bd27d14d0e21d94aa969
Contents?: true
Size: 617 Bytes
Versions: 17
Compression:
Stored size: 617 Bytes
Contents
# frozen_string_literal: true json.key_format! camelize: :lower if mode?(:server) json.meta do render meta, json: json end end json.schemas schemas.map(&:id) json.id id if mode?(:server) json.external_id external_id if mode?(:client) && external_id schemas.each do |schema| if schema.core? schema.attributes.each do |type| attribute = dynamic_attributes[type.name] render attribute, json: json end else json.set! schema.id do schema.attributes.each do |type| attribute = dynamic_attributes[type.name] render attribute, json: json end end end end
Version data entries
17 entries across 17 versions & 1 rubygems