Sha256: 7b1c8be9651f405b64161b560d9f3ee8c3a525a7e8695013e3d9a92a5533101b
Contents?: true
Size: 460 Bytes
Versions: 8
Compression:
Stored size: 460 Bytes
Contents
class Sponsor < ActiveRecord::Base belongs_to :sponsor_club, :class_name => "Club", :foreign_key => "club_id" belongs_to :sponsorable, :polymorphic => true belongs_to :thing, :polymorphic => true, :foreign_type => :sponsorable_type, :foreign_key => :sponsorable_id belongs_to :sponsorable_with_conditions, -> { where :name => 'Ernie'}, :polymorphic => true, :foreign_type => 'sponsorable_type', :foreign_key => 'sponsorable_id' end
Version data entries
8 entries across 8 versions & 1 rubygems