searchable: fixup bugs in e7b454686.

This commit is contained in:
evazion
2021-01-11 19:47:20 -06:00
parent a698ca2b8c
commit ef177a09cf
2 changed files with 3 additions and 3 deletions

View File

@@ -35,7 +35,7 @@ module Searchable
elsif has_attribute?(field)
node = arel_table[field]
else
node = Arel.sql(field)
node = Arel.sql(field.to_s)
end
arel = node.send(operator, *args, **options)