Querying Named Scopes Across Models with ActiveRecord::Relation#merge

Published: July 3, 2014, 3:06 p.m.

Use the merge method to prevent duplication of ActiveRecord scopes when you're querying across different models