aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/fixtures/company.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/company.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/company.rb')
-rwxr-xr-xactiverecord/test/fixtures/company.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/fixtures/company.rb b/activerecord/test/fixtures/company.rb
index 37e4ebda56..c012a978a0 100755
--- a/activerecord/test/fixtures/company.rb
+++ b/activerecord/test/fixtures/company.rb
@@ -22,6 +22,7 @@ class Firm < Company
has_many :exclusively_dependent_clients_of_firm, :foreign_key => "client_of", :class_name => "Client", :order => "id", :dependent => :delete_all
has_many :limited_clients, :class_name => "Client", :order => "id", :limit => 1
has_many :clients_like_ms, :conditions => "name = 'Microsoft'", :class_name => "Client", :order => "id"
+ has_many :clients_with_interpolated_conditions, :class_name => "Client", :conditions => 'rating > #{rating}'
has_many :clients_like_ms_with_hash_conditions, :conditions => { :name => 'Microsoft' }, :class_name => "Client", :order => "id"
has_many :clients_using_sql, :class_name => "Client", :finder_sql => 'SELECT * FROM companies WHERE client_of = #{id}'
has_many :clients_using_counter_sql, :class_name => "Client",