Skip to content

Commit 3a34e15

Browse files
committed
Fix check for postgres database
1 parent 10b0e2c commit 3a34e15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/services/normalized_marc_record_reader.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def current_marc_record_ids
5858

5959
def using_postgres?
6060
defined?(ActiveRecord::ConnectionAdapters::PostgreSQLAdapter) &&
61-
ActiveRecord::Base.connection == ActiveRecord::ConnectionAdapters::PostgreSQLAdapter
61+
ActiveRecord::Base.connection.instance_of?(ActiveRecord::ConnectionAdapters::PostgreSQLAdapter)
6262
end
6363

6464
def __pgsql_current_marc_record_ids

0 commit comments

Comments
 (0)