Sha256: 7d702d7306286f2800407907318d7a497dad94ef8f5b65b53e719f840e668b39
Contents?: true
Size: 458 Bytes
Versions: 2
Compression:
Stored size: 458 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, :polymorphic => true, :foreign_type => 'sponsorable_type', :foreign_key => 'sponsorable_id', :conditions => {:name => 'Ernie'} end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
activerecord-nuodb-adapter-2.0.3 | test/models/sponsor.rb |
activerecord-nuodb-adapter-2.0 | test/models/sponsor.rb |