Sha256: c688f3f65c750c8250d0134b4495e51b7c0b43fead37818bdf15b52ad82adfd2

Contents?: true

Size: 600 Bytes

Versions: 4

Compression:

Stored size: 600 Bytes

Contents

# frozen_string_literal: true

class Interest < ActiveRecord::Base
  belongs_to :human, inverse_of: :interests
  belongs_to :human_with_callbacks,
    class_name: "Human",
    foreign_key: :human_id,
    inverse_of: :interests_with_callbacks
  belongs_to :polymorphic_human, polymorphic: true, inverse_of: :polymorphic_interests
  belongs_to :polymorphic_human_with_callbacks,
    foreign_key: :polymorphic_human_id,
    foreign_type: :polymorphic_human_type,
    polymorphic: true,
    inverse_of: :polymorphic_interests_with_callbacks
  belongs_to :zine, inverse_of: :interests
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ibm_db-5.5.0-x86-mingw32 test/models/interest.rb
ibm_db-5.4.1-x86-mingw32 test/models/interest.rb
ibm_db-5.4.0-x86-mingw32 test/models/interest.rb
ibm_db-5.3.2-x86-mingw32 test/models/interest.rb