The first thing I do with it is this:

if @new_relationships.any?

So it looks like .any? affects the query? I would have thought rails would 
perform the query, get all the records into @new_relationships, and then 
count them. This is a surprising feature.

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/c9c4d2bb-6f00-4f7b-b355-071a576deec6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to