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

Version Path
ibm_db-5.2.0-x86-mingw32 test/models/sponsor.rb
ibm_db-5.1.0-x86-mingw32 test/models/sponsor.rb
ibm_db-5.0.5-x86-mingw32 test/models/sponsor.rb
ibm_db-5.0.4-x86-mingw32 test/models/sponsor.rb
ibm_db-5.0.3-x86-mingw32 test/models/sponsor.rb
ibm_db-5.0.2-x86-mingw32 test/models/sponsor.rb
ibm_db-3.0.5-x86-mingw32 test/models/sponsor.rb
ibm_db-3.0.5 test/models/sponsor.rb