This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############### 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 |