diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2008-06-28 01:27:25 +0100 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2008-06-28 01:27:51 +0100 |
commit | cd994eff9a343df376bfaec59de5b24a2ab51256 (patch) | |
tree | f18d158c5d11cbba33784a136b0276f8237c6a8b /activerecord/test/models/project.rb | |
parent | 582bff71c465075d01b6e062d64b13ac3df4ad56 (diff) | |
download | rails-cd994eff9a343df376bfaec59de5b24a2ab51256.tar.gz rails-cd994eff9a343df376bfaec59de5b24a2ab51256.tar.bz2 rails-cd994eff9a343df376bfaec59de5b24a2ab51256.zip |
Allow conditions on multiple tables to be specified using hash.
Examples:
User.all :joins => :items, :conditions => { :age => 10, :items => { :color => 'black' } }
Item.first :conditions => { :items => { :color => 'red' } }
Note : Hash key in :conditions is referring to the actual table name or the alias defined in query.
Diffstat (limited to 'activerecord/test/models/project.rb')
0 files changed, 0 insertions, 0 deletions