Please sign in to comment.
Make sure that InfixOperation can be visited by Arel
Fixes #101 by making sure Arel alias is in place Based on a similar fix for activerecord-hackery/squeel#122
- Loading branch information...
Showing with 12 additions and 0 deletions.
|@@ -0,0 +1,10 @@|
|+# Workaround for https://github.com/Casecommons/pg_search/issues/101|
|+# Based on the solution from https://github.com/ernie/squeel/issues/122|
|+ unless method_defined?(:visit_Arel_Nodes_InfixOperation)|
|+ alias :visit_Arel_Nodes_InfixOperation :binary|