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 <ja...-7AKS9a5XQeOw5LPnMra/2Q@public.gmane.org>
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.