pg_search_scope 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -52,7 +52,7 @@ module PgSearchScope
|
|
52
52
|
options = scope_options.merge(options || {})
|
53
53
|
search_string ||= ''
|
54
54
|
|
55
|
-
terms = search_string.scan(/'
|
55
|
+
terms = search_string.scan(/'*([\w\.']+)/).map {|s,_| s.gsub /'/, "''"}
|
56
56
|
|
57
57
|
if terms.present?
|
58
58
|
prefix = arel_table.table_alias || arel_table.name
|