Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

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.

http://github.com/rails/rails/co...

3 changed files

  • M activerecord/CHANGELOG
  • M activerecord/lib/active_record/base.rb
  • M activerecord/test/cases/finder_test.rb