This project is archived and is in readonly mode.

Changeset [cd994eff9a343df376bfaec59de5b24a2ab51256] by Pratik Naik

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...

Committed by Repository

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

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>