lib/pg_search/document.rb in pg_search-2.3.2 vs lib/pg_search/document.rb in pg_search-2.3.3
- old
+ new
@@ -10,10 +10,10 @@
belongs_to :searchable, polymorphic: true
# The logger might not have loaded yet.
# https://github.com/Casecommons/pg_search/issues/26
def self.logger
- super || Logger.new(STDERR)
+ super || Logger.new($stderr)
end
pg_search_scope :search, lambda { |*args|
options = if PgSearch.multisearch_options.respond_to?(:call)
PgSearch.multisearch_options.call(*args)