2009-05-01 11:01:13 -04:00
|
|
|
class Face < ActiveRecord::Base
|
|
|
|
belongs_to :man, :inverse_of => :face
|
2009-11-29 00:46:09 -05:00
|
|
|
belongs_to :polymorphic_man, :polymorphic => true, :inverse_of => :polymorphic_face
|
2014-05-26 14:52:46 -04:00
|
|
|
belongs_to :polymorphic_man_without_inverse, :polymorphic => true
|
2009-12-28 08:13:33 -05:00
|
|
|
# These is a "broken" inverse_of for the purposes of testing
|
2009-05-01 11:01:13 -04:00
|
|
|
belongs_to :horrible_man, :class_name => 'Man', :inverse_of => :horrible_face
|
2009-12-28 08:13:33 -05:00
|
|
|
belongs_to :horrible_polymorphic_man, :polymorphic => true, :inverse_of => :horrible_polymorphic_face
|
2009-05-01 11:01:13 -04:00
|
|
|
end
|