We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 10b0e2c commit 3a34e15Copy full SHA for 3a34e15
app/services/normalized_marc_record_reader.rb
@@ -58,7 +58,7 @@ def current_marc_record_ids
58
59
def using_postgres?
60
defined?(ActiveRecord::ConnectionAdapters::PostgreSQLAdapter) &&
61
- ActiveRecord::Base.connection == ActiveRecord::ConnectionAdapters::PostgreSQLAdapter
+ ActiveRecord::Base.connection.instance_of?(ActiveRecord::ConnectionAdapters::PostgreSQLAdapter)
62
end
63
64
def __pgsql_current_marc_record_ids
0 commit comments