aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models
diff options
context:
space:
mode:
authorPratik Naik <pratiknaik@gmail.com>2008-06-28 01:27:25 +0100
committerPratik Naik <pratiknaik@gmail.com>2008-06-28 01:27:51 +0100
commitcd994eff9a343df376bfaec59de5b24a2ab51256 (patch)
treef18d158c5d11cbba33784a136b0276f8237c6a8b /activerecord/test/models
parent582bff71c465075d01b6e062d64b13ac3df4ad56 (diff)
downloadrails-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')
0 files changed, 0 insertions, 0 deletions