Skip to content

Instantly share code, notes, and snippets.

############### Named filter issues.
#
# 1) The table aliases for explicit joins are hacky. Obviously this is an easy fix, but we should
# talk about the best alternative. In this example, the resulting alias should not be "posts_blogs".
#
# => Agreed, although I can't think of anything really clever at the moment...
Post.filter do
join(Blog, :left, :posts_blogs) do