Hmm interesting, I'll give this a try when I get a chance.
Re: what I'm trying to do. I'm trying to combine two Active record queries and then do a third where query to get only the commenter's comments. The final chained query should produce a single SQL query, and then I want to update_all a single collection/relation of records.
The where is called on the ActiveRecord relation and not an individual ActiveRecord record, which is how I can chain the where after doing union.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hmm interesting, I'll give this a try when I get a chance.
Re: what I'm trying to do. I'm trying to combine two Active record queries and then do a third
where
query to get only the commenter's comments. The final chained query should produce a single SQL query, and then I want toupdate_all
a single collection/relation of records.The
where
is called on the ActiveRecord relation and not an individual ActiveRecord record, which is how I can chain thewhere
after doingunion
.