diff --git a/app/controllers/universal_tables_controller.rb b/app/controllers/universal_tables_controller.rb index ddc1159..6daa4eb 100644 --- a/app/controllers/universal_tables_controller.rb +++ b/app/controllers/universal_tables_controller.rb @@ -202,9 +202,9 @@ class UniversalTablesController < ApplicationController regex = Regexp.union(regexes.map{|word| Regexp.new(".*"+word+".*", "i")}) end if column.type == "text" - columns = column.column_entries.any_of(:"text.en" => regex, :"text.zh_tw" => regex) + columns = column.column_entries.any_of([{"text.en" => regex}, {"text.zh_tw" => regex}]) elsif column.type == "editor" - columns = column.column_entries.any_of(:"content.en" => regex, :"content.zh_tw" => regex) + columns = column.column_entries.any_of([{"content.en" => regex}, {"content.zh_tw" => regex}]) end # .or(:"content.en" => regex).or(:"content.zh_tw" => regex) if paginated