~michaelforrest/use-case-mapper/trunk

« back to all changes in this revision

Viewing changes to vendor/rails/activerecord/test/models/club.rb

  • Committer: Michael Forrest
  • Date: 2010-10-15 16:28:50 UTC
  • Revision ID: michael.forrest@canonical.com-20101015162850-tj2vchanv0kr0dun
refrozeĀ gems

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
class Club < ActiveRecord::Base
 
2
  has_many :memberships
 
3
  has_many :members, :through => :memberships
 
4
  has_many :current_memberships
 
5
  has_one :sponsor
 
6
  has_one :sponsored_member, :through => :sponsor, :source => :sponsorable, :source_type => "Member"
 
7
 
 
8
  private
 
9
 
 
10
  def private_method
 
11
    "I'm sorry sir, this is a *private* club, not a *pirate* club"
 
12
  end
 
13
end
 
 
b'\\ No newline at end of file'