diff options
author | Rick Olson <technoweenie@gmail.com> | 2006-04-19 21:37:54 +0000 |
---|---|---|
committer | Rick Olson <technoweenie@gmail.com> | 2006-04-19 21:37:54 +0000 |
commit | df7b74668ebc0ae9978d4c27125db7fec730b110 (patch) | |
tree | 9480c1dc66827f1688067b1c463a1c3691beb1ac /activerecord/test/fixtures | |
parent | 9d8e34808f0d20d4bbc1cfb0cdf294b35d8bd224 (diff) | |
download | rails-df7b74668ebc0ae9978d4c27125db7fec730b110.tar.gz rails-df7b74668ebc0ae9978d4c27125db7fec730b110.tar.bz2 rails-df7b74668ebc0ae9978d4c27125db7fec730b110.zip |
Fix the HasManyAssociation#count method so it uses the new ActiveRecord::Base#count syntax, while maintaining backwards compatibility. [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4237 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test/fixtures')
-rwxr-xr-x | activerecord/test/fixtures/company.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/fixtures/company.rb b/activerecord/test/fixtures/company.rb index 59a7cdd13e..526748784e 100755 --- a/activerecord/test/fixtures/company.rb +++ b/activerecord/test/fixtures/company.rb @@ -28,6 +28,7 @@ class Firm < Company has_many :no_clients_using_counter_sql, :class_name => "Client", :finder_sql => 'SELECT * FROM companies WHERE client_of = 1000', :counter_sql => 'SELECT COUNT(*) FROM companies WHERE client_of = 1000' + has_many :plain_clients, :class_name => 'Client' has_one :account, :foreign_key => "firm_id", :dependent => :destroy end |