aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/fixtures/category.rb
diff options
context:
space:
mode:
authorRick Olson <technoweenie@gmail.com>2006-10-09 02:46:57 +0000
committerRick Olson <technoweenie@gmail.com>2006-10-09 02:46:57 +0000
commit8e3bf70bcd496ae642fdae5ad7717ad8378de176 (patch)
tree61a47381adc2b388366bf1806ff3bedaeb570517 /activerecord/test/fixtures/category.rb
parentccd32adecae3e95836effe8c96ac215e9b9e580e (diff)
downloadrails-8e3bf70bcd496ae642fdae5ad7717ad8378de176.tar.gz
rails-8e3bf70bcd496ae642fdae5ad7717ad8378de176.tar.bz2
rails-8e3bf70bcd496ae642fdae5ad7717ad8378de176.zip
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
Diffstat (limited to 'activerecord/test/fixtures/category.rb')
-rw-r--r--activerecord/test/fixtures/category.rb3
1 files changed, 1 insertions, 2 deletions
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...'