4523: Fix up whitespace.
authorTom Clegg <tom@curoverse.com>
Mon, 9 Feb 2015 17:05:16 +0000 (12:05 -0500)
committerTom Clegg <tom@curoverse.com>
Mon, 9 Feb 2015 17:13:55 +0000 (12:13 -0500)
services/api/lib/record_filters.rb

index 1e6be5f5ac4f794dec54f1cc4e1b994d4b7fe472..3786a709904e3dc1ca2b217085cec0809998fbb5 100644 (file)
@@ -42,9 +42,11 @@ module RecordFilters
         if attrs_in != 'any'
           raise ArgumentError.new("Full text search on individual columns is not supported")
         end
-        attrs = [] #  skip the generic per-column operator loop below
-        # Use to_tsquery since plainto_tsquery does not support prefix search.
-        # Instead split operand, add ':*' to each word and join the words with ' & '
+        # Skip the generic per-column operator loop below
+        attrs = []
+        # Use to_tsquery since plainto_tsquery does not support prefix
+        # search.  Instead split operand, add ':*' to each word and
+        # join the words with ' & '
         cond_out << model_class.full_text_tsvector+" @@ to_tsquery(?)"
         param_out << operand.split.each {|s| s.concat(':*')}.join(' & ')
       end