Sha256: 32316e82a7fb31ff4cb3534131429e4ae4cd9c5c5160a39f26fae2722dbfcbca

Contents?: true

Size: 283 Bytes

Versions: 4

Compression:

Stored size: 283 Bytes

Contents

module Cadenero
  class AccountSerializer < ActiveModel::Serializer
    embed :ids
    attributes :id, :name, :subdomain
    has_one :owner,  :class_name => "Cadenero::User"
    has_many :members, :class_name => "Cadenero::Member"
    has_many :users, :through => :members
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
cadenero-0.0.2.a2 app/serializers/cadenero/account_serializer.rb
cadenero-0.0.2.a1 app/serializers/cadenero/account_serializer.rb
cadenero-0.0.2.a app/serializers/cadenero/account_serializer.rb
cadenero-0.0.1 app/serializers/cadenero/account_serializer.rb