blob: 83d6b1b15a04e447e6b8c8250f5e26579e80f369 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
class Club < ActiveRecord::Base
has_many :memberships
has_many :members, :through => :memberships
has_many :current_memberships
has_one :sponsor
has_one :sponsored_member, :through => :sponsor, :source => :sponsorable, :source_type => "Member"
belongs_to :category
private
def private_method
"I'm sorry sir, this is a *private* club, not a *pirate* club"
end
end
|