This project is archived and is in readonly mode.
Changeset [cd994eff9a343df376bfaec59de5b24a2ab51256] by Pratik Naik
Revision cd994eff9a343df376bfaec59de5b24a2ab51256,
committed by Repository
· June 28th, 2008 @ 01:27 AM
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.
3 changed files
-
M
activerecord/CHANGELOG -
M
activerecord/lib/active_record/base.rb -
M
activerecord/test/cases/finder_test.rb