aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/spec/observing_spec.rb
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 /activemodel/spec/observing_spec.rb
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 'activemodel/spec/observing_spec.rb')
0 files changed, 0 insertions, 0 deletions