Source

RubyLearning / ProjectTrak / vendor / rails / activerecord / test / models / sponsor.rb

1
2
3
4
class Sponsor < ActiveRecord::Base
  belongs_to :sponsor_club, :class_name => "Club", :foreign_key => "club_id"
  belongs_to :sponsorable, :polymorphic => true
end