Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Move arel_wrap private method into tsearch for now

The goal is to remove it entirely
  • Loading branch information...
commit c260871cc54118b0424edc5c64d84036e8d5de6c 1 parent 4cb5376
@nertzy nertzy authored
View
8 lib/pg_search/features/feature.rb
@@ -28,14 +28,6 @@ def document
def normalize(expression)
normalizer.add_normalization(expression)
end
-
- def arel_wrap(sql_string, interpolations = {})
- Arel::Nodes::Grouping.new(
- Arel.sql(
- sanitize_sql_array([sql_string, interpolations])
- )
- )
- end
end
end
end
View
8 lib/pg_search/features/tsearch.rb
@@ -91,6 +91,14 @@ def tsearch_rank
def dictionary
options[:dictionary] || :simple
end
+
+ def arel_wrap(sql_string, interpolations = {})
+ Arel::Nodes::Grouping.new(
+ Arel.sql(
+ sanitize_sql_array([sql_string, interpolations])
+ )
+ )
+ end
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.