REFACTOR: compact! works since the array can't contain empty strings
This commit is contained in:
parent
60941f214c
commit
bf27aecce2
|
@ -833,7 +833,7 @@ class Search
|
|||
all_terms = data.scan(/'([^']+)'\:\d+/).flatten
|
||||
all_terms.map! do |t|
|
||||
t.split(/[\)\(&']/).find(&:present?)
|
||||
end.reject!(&:blank?)
|
||||
end.compact!
|
||||
|
||||
query = ActiveRecord::Base.connection.quote(
|
||||
all_terms
|
||||
|
|
Loading…
Reference in New Issue