I've had luck with doing this:
Post.where(:comments => {author_id => 1}).where(:title => 'How to
specify nested conditions')
This seems to replace the need for merge_conditions.
On Aug 28, 11:37 am, james <[email protected]> wrote:
> merge_conditions seems to be gone from rails 3. Is there something in
> Rails 3 or Arel that would allow me to achieve the same thing, which
> is to merge various types of conditions (array, hash, etc)? I haven't
> spent much time with Arel, so I may be missing something obvious.
>
> Thanks
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.