From 8e3bf70bcd496ae642fdae5ad7717ad8378de176 Mon Sep 17 00:00:00 2001 From: Rick Olson Date: Mon, 9 Oct 2006 02:46:57 +0000 Subject: Removes the ability for eager loaded conditions to be interpolated, since there is no model instance to use as a context for interpolation. #5553 [turnip@turnipspatch.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5264 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/test/fixtures/category.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'activerecord/test/fixtures/category.rb') diff --git a/activerecord/test/fixtures/category.rb b/activerecord/test/fixtures/category.rb index 6917c51d34..295bd8277f 100644 --- a/activerecord/test/fixtures/category.rb +++ b/activerecord/test/fixtures/category.rb @@ -1,8 +1,7 @@ class Category < ActiveRecord::Base has_and_belongs_to_many :posts has_and_belongs_to_many :special_posts, :class_name => "Post" - has_and_belongs_to_many :hello_posts, :class_name => "Post", :conditions => "\#{aliased_table_name}.body = 'hello'" - has_and_belongs_to_many :nonexistent_posts, :class_name => "Post", :conditions=>"\#{aliased_table_name}.body = 'nonexistent'" + has_and_belongs_to_many :other_posts, :class_name => "Post" def self.what_are_you 'a category...' -- cgit v1.2.3