Sha256: b6645ff41a16081874f924eb24deda76010764561b2c40e238e420b6c670354f
Contents?: true
Size: 367 Bytes
Versions: 2
Compression:
Stored size: 367 Bytes
Contents
# frozen_string_literal: true class FooSerializer include JSONAPI::Serializer belongs_to :bar, key: :foo_bar has_one :fizz, key: :foo_fizz has_many :buzzes, key: :foo_buzzes attribute :xyz def self.additional_schema { data: { example: { attributes: { xyz: 'foobar' } } } } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
grape-jsonapi-1.0.1 | spec/support/serializers/foo_serializer.rb |
grape-jsonapi-1.0.0 | spec/support/serializers/foo_serializer.rb |