aboutsummaryrefslogblamecommitdiffstats
path: root/activerecord/test/models/man.rb
blob: f40bc9d0fc0a2c7fef3d9eb8f73b0f5f8b5a8dd5 (plain) (tree)
1
2
3
4
5
6
7






                                                                                   
class Man < ActiveRecord::Base
  has_one :face, :inverse_of => :man
  has_many :interests, :inverse_of => :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
end