Sha256: fe900f98ac252b69b0436e2d6abec39e8c006fc6cbf978105ec31c710e97cd27

Contents?: true

Size: 704 Bytes

Versions: 23

Compression:

Stored size: 704 Bytes

Contents

class Man < ActiveRecord::Base
  has_one :face, :inverse_of => :man
  has_one :polymorphic_face, :class_name => 'Face', :as => :polymorphic_man, :inverse_of => :polymorphic_man
  has_one :polymorphic_face_without_inverse, :class_name => 'Face', :as => :poly_man_without_inverse
  has_many :interests, :inverse_of => :man
  has_many :polymorphic_interests, :class_name => 'Interest', :as => :polymorphic_man, :inverse_of => :polymorphic_man
  # These are "broken" inverse_of associations for the purposes of testing
  has_one :dirty_face, :class_name => 'Face', :inverse_of => :dirty_man
  has_many :secret_interests, :class_name => 'Interest', :inverse_of => :secret_man
  has_one :mixed_case_monkey
end

Version data entries

23 entries across 23 versions & 2 rubygems

Version Path
ibm_db-5.5.0 test/models/man.rb
ibm_db-5.4.1 test/models/man.rb
ibm_db-5.4.0 test/models/man.rb
ibm_db-5.3.2 test/models/man.rb
ibm_db-5.3.1 test/models/man.rb
ibm_db-5.2.0 test/models/man.rb
ibm_db-5.1.0 test/models/man.rb
ibm_db-5.0.5 test/models/man.rb
ibm_db-5.0.4 test/models/man.rb
ibm_db-5.0.3 test/models/man.rb
ibm_db-5.0.2 test/models/man.rb
ibm_db-4.0.0-x86-mingw32 test/models/man.rb
ibm_db-4.0.0 test/models/man.rb
ibm_db-3.0.4-x86-mingw32 test/models/man.rb
ibm_db-3.0.4 test/models/man.rb
ibm_db-3.0.3-x86-mingw32 test/models/man.rb
ibm_db-3.0.3 test/models/man.rb
ibm_db-3.0.2-x86-mingw32 test/models/man.rb
ibm_db-3.0.2 test/models/man.rb
activejob-lock-0.0.2 rails/activerecord/test/models/man.rb