Sha256: 0098fd088b102b2c198f06e57fce14cdfcae2e128d617e1f07baae4530c23ce5

Contents?: true

Size: 415 Bytes

Versions: 26

Compression:

Stored size: 415 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
end

Version data entries

26 entries across 26 versions & 8 rubygems

Version Path
activerecord-2.1.2 test/models/member.rb
activerecord-2.1.1 test/models/member.rb
antfarm-0.3.0 rails/vendor/rails/activerecord/test/models/member.rb
antfarm-0.4.0 rails/vendor/rails/activerecord/test/models/member.rb
radiant-0.7.0 vendor/rails/activerecord/test/models/member.rb
radiant-0.7.1 vendor/rails/activerecord/test/models/member.rb