lib/pg_search/extensions/arel.rb in pg_search-1.0.4 vs lib/pg_search/extensions/arel.rb in pg_search-1.0.5
- old
+ new
@@ -2,9 +2,9 @@
# Workaround for https://github.com/Casecommons/pg_search/issues/101
# Based on the solution from https://github.com/ernie/squeel/issues/122
Arel::Visitors::DepthFirst.class_eval do
unless method_defined?(:visit_Arel_Nodes_InfixOperation)
- alias :visit_Arel_Nodes_InfixOperation :binary
+ alias_method :visit_Arel_Nodes_InfixOperation, :binary
end
end