Sha256: 6df2635834c14a5849fbb1d4f6d7c3b3f029274b389600b81a1a11430b23af68

Contents?: true

Size: 471 Bytes

Versions: 1

Compression:

Stored size: 471 Bytes

Contents

class Api::V1::UserSerializer < Api::V1::ApplicationSerializer
  set_type "user"

  attributes :id,
    :email,
    :first_name,
    :last_name,
    :time_zone,
    :profile_photo_id,
    :former_user,
    :locale,
    :platform_agent_of_id,
    # 🚅 super scaffolding will insert new fields above this line.
    :created_at,
    :updated_at

  has_many :teams, serializer: Api::V1::TeamSerializer
  has_many :memberships, 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/user_serializer.rb