lib/pg_search/document.rb in pg_search-0.5.4 vs lib/pg_search/document.rb in pg_search-0.5.5
- old
+ new
@@ -25,10 +25,10 @@
}
private
def update_content
- methods = Array.wrap(searchable.pg_search_multisearchable_options[:against])
+ methods = Array(searchable.pg_search_multisearchable_options[:against])
searchable_text = methods.map { |symbol| searchable.send(symbol) }.join(" ")
self.content = searchable_text
end
end
end