diff options
author | Frederick Cheung <frederick.cheung@gmail.com> | 2008-12-21 15:38:40 +0000 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2008-12-21 15:57:48 +0000 |
commit | b17b9371c6a26484eb1984d45acffcdcd91b1ae1 (patch) | |
tree | f81c502a724e8383faf90d6b28250fd54860e9e5 /activerecord/test/models/company.rb | |
parent | 6f4b2469fb19bb01fa0f53192eb49f8f2d95db1b (diff) | |
download | rails-b17b9371c6a26484eb1984d45acffcdcd91b1ae1.tar.gz rails-b17b9371c6a26484eb1984d45acffcdcd91b1ae1.tar.bz2 rails-b17b9371c6a26484eb1984d45acffcdcd91b1ae1.zip |
Fix configure_dependency_for_has_many not quoting conditions properly [#1461 state:resolved]
Diffstat (limited to 'activerecord/test/models/company.rb')
-rw-r--r-- | activerecord/test/models/company.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/models/company.rb b/activerecord/test/models/company.rb index 0e3fafa37c..3b27a9e272 100644 --- a/activerecord/test/models/company.rb +++ b/activerecord/test/models/company.rb @@ -80,6 +80,7 @@ class ExclusivelyDependentFirm < Company has_one :account, :foreign_key => "firm_id", :dependent => :delete has_many :dependent_sanitized_conditional_clients_of_firm, :foreign_key => "client_of", :class_name => "Client", :order => "id", :dependent => :delete_all, :conditions => "name = 'BigShot Inc.'" has_many :dependent_conditional_clients_of_firm, :foreign_key => "client_of", :class_name => "Client", :order => "id", :dependent => :delete_all, :conditions => ["name = ?", 'BigShot Inc.'] + has_many :dependent_hash_conditional_clients_of_firm, :foreign_key => "client_of", :class_name => "Client", :order => "id", :dependent => :delete_all, :conditions => {:name => 'BigShot Inc.'} end class Client < Company |