Sha256: 675aadbd3a678fa271577bbd471dfe43f6510adb4709430cc6282021cb0ed118

Contents?: true

Size: 453 Bytes

Versions: 20

Compression:

Stored size: 453 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

20 entries across 20 versions & 3 rubygems

Version Path
ibm_db-5.2.0 test/models/sponsor.rb
ibm_db-5.1.0 test/models/sponsor.rb
ibm_db-5.0.5 test/models/sponsor.rb
ibm_db-5.0.4 test/models/sponsor.rb
ibm_db-5.0.3 test/models/sponsor.rb
ibm_db-5.0.2 test/models/sponsor.rb
ibm_db-4.0.0-x86-mingw32 test/models/sponsor.rb
ibm_db-4.0.0 test/models/sponsor.rb
ibm_db-3.0.4-x86-mingw32 test/models/sponsor.rb
ibm_db-3.0.4 test/models/sponsor.rb
ibm_db-3.0.3-x86-mingw32 test/models/sponsor.rb
ibm_db-3.0.3 test/models/sponsor.rb
ibm_db-3.0.2-x86-mingw32 test/models/sponsor.rb
ibm_db-3.0.2 test/models/sponsor.rb
activejob-lock-0.0.2 rails/activerecord/test/models/sponsor.rb
ibm_db-3.0.1 test/models/sponsor.rb
ibm_db-3.0.1-x86-mingw32 test/models/sponsor.rb
activejob-lock-0.0.1 rails/activerecord/test/models/sponsor.rb
activerecord-nuodb-adapter-1.1 test/models/sponsor.rb
activerecord-nuodb-adapter-1.0.4 test/models/sponsor.rb