Sha256: d459182c7f98555119447a300b41fd8065ab48214d064794660e2f8070eb528d

Contents?: true

Size: 408 Bytes

Versions: 1

Compression:

Stored size: 408 Bytes

Contents

class Api::V1::InvitationSerializer < Api::V1::ApplicationSerializer
  set_type "invitation"

  attributes :id,
    :team_id,
    :email,
    :from_membership_id,
    # 🚅 super scaffolding will insert new fields above this line.
    :created_at,
    :updated_at

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bullet_train-serializers-1.0.1 app/serializers/api/v1/invitation_serializer.rb