Sha256: 6de6296a106680395996f0b80450f5a42a09751c79a1f0680c4ffbaef2077466
Contents?: true
Size: 496 Bytes
Versions: 5
Compression:
Stored size: 496 Bytes
Contents
# frozen_string_literal: true class Sponsor < ActiveRecord::Base belongs_to :sponsor_club, class_name: "Club", foreign_key: "club_id" belongs_to :sponsorable, polymorphic: true belongs_to :sponsor, 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
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
ibm_db-5.5.0 | test/models/sponsor.rb |
ibm_db-5.4.1 | test/models/sponsor.rb |
ibm_db-5.4.0 | test/models/sponsor.rb |
ibm_db-5.3.2 | test/models/sponsor.rb |
ibm_db-5.3.1 | test/models/sponsor.rb |