aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/man.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/models/man.rb')
-rw-r--r--activerecord/test/models/man.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/activerecord/test/models/man.rb b/activerecord/test/models/man.rb
new file mode 100644
index 0000000000..f40bc9d0fc
--- /dev/null
+++ b/activerecord/test/models/man.rb
@@ -0,0 +1,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