Sha256: 03475081c163978a41080b70a15fffacdc15b50132f6b818a49f8333e9402f24

Contents?: true

Size: 458 Bytes

Versions: 9

Compression:

Stored size: 458 Bytes

Contents

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

  included do
    set_type "user"

    attributes :id,
      :email,
      :first_name,
      :last_name,
      :time_zone,
      :profile_photo_id,
      :former_user,
      :locale,
      :platform_agent_of_id,
      :created_at,
      :updated_at

    has_many :teams, serializer: Api::V1::TeamSerializer
    has_many :memberships, 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/users/serializer_base.rb
bullet_train-api-1.0.16 app/serializers/concerns/api/v1/users/serializer_base.rb
bullet_train-api-1.0.15 app/serializers/concerns/api/v1/users/serializer_base.rb
bullet_train-api-1.0.14 app/serializers/concerns/api/v1/users/serializer_base.rb
bullet_train-api-1.0.13 app/serializers/concerns/api/v1/users/serializer_base.rb
bullet_train-api-1.0.12 app/serializers/concerns/api/v1/users/serializer_base.rb
bullet_train-api-1.0.8 app/serializers/concerns/api/v1/users/serializer_base.rb
bullet_train-api-1.0.7 app/serializers/concerns/api/v1/users/serializer_base.rb
bullet_train-serializers-1.0.2 app/serializers/concerns/api/v1/users/serializer_base.rb