On Aug 16, 2014, at 7:45 AM, Ronald Fischer <li...@ruby-forum.com> wrote:

> and it means I 
> would have code duplication here, but maybe I will give it a try.

Actually, you can build the relations separately, and then combine them with 
.or, before accessing rows of the result. So you probably do not have get code 
duplication from that approach.

-- 
Scott Ribe
scott_r...@elevated-dev.com
http://www.elevated-dev.com/
(303) 722-0567 voice




-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/A1398DC1-A1E5-40C5-9A3D-90263E05B4B2%40elevated-dev.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to