Sha256: bd3e3560c49a6c192293420afd345efba1ffb4e1c9c1db7f3c850009a52220d7

Contents?: true

Size: 385 Bytes

Versions: 9

Compression:

Stored size: 385 Bytes

Contents

module Api::V1::Invitations::SerializerBase
  extend ActiveSupport::Concern

  included do
    set_type "invitation"

    attributes :id,
      :team_id,
      :email,
      :from_membership_id,
      :created_at,
      :updated_at

    belongs_to :from_membership, serializer: Api::V1::MembershipSerializer
    has_one :membership, serializer: Api::V1::MembershipSerializer
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
bullet_train-api-1.0.17 app/serializers/concerns/api/v1/invitations/serializer_base.rb
bullet_train-api-1.0.16 app/serializers/concerns/api/v1/invitations/serializer_base.rb
bullet_train-api-1.0.15 app/serializers/concerns/api/v1/invitations/serializer_base.rb
bullet_train-api-1.0.14 app/serializers/concerns/api/v1/invitations/serializer_base.rb
bullet_train-api-1.0.13 app/serializers/concerns/api/v1/invitations/serializer_base.rb
bullet_train-api-1.0.12 app/serializers/concerns/api/v1/invitations/serializer_base.rb
bullet_train-api-1.0.8 app/serializers/concerns/api/v1/invitations/serializer_base.rb
bullet_train-api-1.0.7 app/serializers/concerns/api/v1/invitations/serializer_base.rb
bullet_train-serializers-1.0.2 app/serializers/concerns/api/v1/invitations/serializer_base.rb