Sha256: 5f2a828d1720f49120f48d30090cd07ab70c48bedf9e7496b46035f7f6ed0254

Contents?: true

Size: 230 Bytes

Versions: 9

Compression:

Stored size: 230 Bytes

Contents

module Cadenero
  # JSON Serializaer for the Cadenero::User Model
  class UserSerializer < ActiveModel::Serializer
    embed :ids
    attributes :id, :email, :auth_token
    has_many :accounts
    has_many :memberships

  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
cadenero-0.0.2.b10 app/serializers/cadenero/user_serializer.rb
cadenero-0.0.2.b8 app/serializers/cadenero/user_serializer.rb
cadenero-0.0.2.b7 app/serializers/cadenero/user_serializer.rb
cadenero-0.0.2.b6 app/serializers/cadenero/user_serializer.rb
cadenero-0.0.2.b5 app/serializers/cadenero/user_serializer.rb
cadenero-0.0.2.b4 app/serializers/cadenero/user_serializer.rb
cadenero-0.0.2.b3 app/serializers/cadenero/user_serializer.rb
cadenero-0.0.2.b2 app/serializers/cadenero/user_serializer.rb
cadenero-0.0.2.b1 app/serializers/cadenero/user_serializer.rb