Sha256: 8f959109c1f658a0d31e6b0aba477012c7dca48244e83063bd17fec85b72f6ab

Contents?: true

Size: 492 Bytes

Versions: 11

Compression:

Stored size: 492 Bytes

Contents

class Member < ActiveRecord::Base
  has_one :current_membership
  has_many :memberships
  has_many :fellow_members, :through => :club, :source => :members
  has_one :club, :through => :current_membership
  has_one :favourite_club, :through => :memberships, :conditions => ["memberships.favourite = ?", true], :source => :club
  has_one :sponsor, :as => :sponsorable
  has_one :sponsor_club, :through => :sponsor
  has_one :member_detail
  has_one :organization, :through => :member_detail
end

Version data entries

11 entries across 10 versions & 6 rubygems

Version Path
p8-castronaut-0.6.1.1 vendor/activerecord/test/models/member.rb
relevance-castronaut-0.6.0 vendor/activerecord/test/models/member.rb
relevance-castronaut-0.6.1 vendor/activerecord/test/models/member.rb
relevance-castronaut-0.7.4 vendor/activerecord/test/models/member.rb
relevance-castronaut-0.7.5 vendor/activerecord/test/models/member.rb
nbudin-castronaut-0.7.5 vendor/activerecord/test/models/member.rb
usher-0.7.0 spec/rails2_2/vendor/rails/vendor/rails/activerecord/test/models/member.rb
usher-0.7.0 spec/rails2_2/vendor/rails/vendor/rails/activerecord/pkg/activerecord-2.2.2/test/models/member.rb
factorylabs-castronaut-0.7.5 vendor/activerecord/test/models/member.rb
activerecord-2.2.3 test/models/member.rb
activerecord-2.2.2 test/models/member.rb