Sha256: 541f54118c6b2c5bc4fcecfcb9c5b40e291fe0a14e42b7919fd619c5ab0afb9c

Contents?: true

Size: 220 Bytes

Versions: 2

Compression:

Stored size: 220 Bytes

Contents

module Cadenero
  class UserSerializer < ActiveModel::Serializer
    embed :ids
    attributes :id, :email
    has_many :members, :class_name => "Cadenero::Member"
    has_many :accounts, :through => :members

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cadenero-0.0.2.a2 app/serializers/cadenero/user_serializer.rb
cadenero-0.0.2.a1 app/serializers/cadenero/user_serializer.rb