lib/pg_search/multisearch/rebuilder.rb in pg_search-2.1.2 vs lib/pg_search/multisearch/rebuilder.rb in pg_search-2.1.3

- old
+ new

@@ -72,10 +72,12 @@ def replacements %w[content_expressions base_model_name model_name model_table documents_table current_time sti_clause] end def content_expressions - columns.map { |column| %{coalesce(:model_table.#{column}::text, '')} }.join(" || ' ' || ") + columns.map do |column| + %{coalesce(:model_table.#{connection.quote_column_name(column)}::text, '')} + end.join(" || ' ' || ") end def columns Array(model.pg_search_multisearchable_options[:against]) end