blob: 24a65b0f2f2977786d7d5d936a4e243a365f424a (
plain) (
tree)
|
|
class Club < ActiveRecord::Base
has_one :membership
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
|