aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/fixtures/author.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/author.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/author.rb')
-rw-r--r--activerecord/test/fixtures/author.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/activerecord/test/fixtures/author.rb b/activerecord/test/fixtures/author.rb
index 1c49b90fe5..7373639383 100644
--- a/activerecord/test/fixtures/author.rb
+++ b/activerecord/test/fixtures/author.rb
@@ -18,8 +18,7 @@ class Author < ActiveRecord::Base
has_many :funky_comments, :through => :posts, :source => :comments
has_many :special_posts, :class_name => "Post"
- has_many :hello_posts, :class_name => "Post", :conditions=>"\#{aliased_table_name}.body = 'hello'"
- has_many :nonexistent_posts, :class_name => "Post", :conditions=>"\#{aliased_table_name}.body = 'nonexistent'"
+ has_many :other_posts, :class_name => "Post"
has_many :posts_with_callbacks, :class_name => "Post", :before_add => :log_before_adding,
:after_add => :log_after_adding,
:before_remove => :log_before_removing,