From 44d214235271cb6d2af1c327d592a3010e1ced3e Mon Sep 17 00:00:00 2001 From: Frederick Cheung Date: Fri, 25 Apr 2008 23:23:48 +0100 Subject: Ensure table names are quoted by the association preloading code. [#45 state:resolved] Signed-off-by: Michael Koziarski --- activerecord/test/models/person.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'activerecord/test/models/person.rb') diff --git a/activerecord/test/models/person.rb b/activerecord/test/models/person.rb index 366f9fb708..4f4d695b24 100644 --- a/activerecord/test/models/person.rb +++ b/activerecord/test/models/person.rb @@ -2,4 +2,9 @@ class Person < ActiveRecord::Base has_many :readers has_many :posts, :through => :readers has_many :posts_with_no_comments, :through => :readers, :source => :post, :include => :comments, :conditions => 'comments.id is null' + + has_many :references + has_many :jobs, :through => :references + has_one :favourite_reference, :class_name => 'Reference', :conditions => ['favourite=?', true] + end -- cgit v1.2.3