Permalink
Browse files

Move arel_wrap private method into tsearch for now

The goal is to remove it entirely
  • Loading branch information...
1 parent 4cb5376 commit c260871cc54118b0424edc5c64d84036e8d5de6c @nertzy nertzy committed Apr 2, 2013
Showing with 8 additions and 8 deletions.
  1. +0 −8 lib/pg_search/features/feature.rb
  2. +8 −0 lib/pg_search/features/tsearch.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
@@ -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

0 comments on commit c260871

Please sign in to comment.