Sha256: 96079f9b5e8116d97f2aa34f42002287c5c2ad1e9e89e7d6ee53bd69c9596add

Contents?: true

Size: 219 Bytes

Versions: 2

Compression:

Stored size: 219 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.a app/serializers/cadenero/user_serializer.rb
cadenero-0.0.1 app/serializers/cadenero/user_serializer.rb