Permalink
Browse files

speed up match?

  • Loading branch information...
1 parent c6c4869 commit 92f95bbb33346cc6a8e7e07e51696ad10e1a6fc7 @tenderlove tenderlove committed Oct 9, 2013
@@ -34,6 +34,7 @@ def parent_table_name; parent.table_name; end
alias :alias_suffix :parent_table_name
def match?(other)
+ return true if self == other
super && reflection == other.reflection
end

0 comments on commit 92f95bb

Please sign in to comment.