How to simplify Active Record scopes that reference other models http://aokolish.me/blog/2015/05/26/how-to-simplify-active-record-scopes-that-reference-other-tables/ June 7, 2015