As I can see in source prosopite uses ActiveRecord::Base to define database adapter. If you have multiple databases you probably have multiple successors of ApplicationRecord where each of them uses different database. When prosopite uses ActiveRecord::Base it will always get adapter of primary database which is not correct. As a result, gem just fails when encounters active record queries from not primary database and can't be used at all.
Not sure if it's easy fix, but maybe it is worth mentioning it in docs?
As I can see in source prosopite uses
ActiveRecord::Baseto define database adapter. If you have multiple databases you probably have multiple successors ofApplicationRecordwhere each of them uses different database. When prosopite usesActiveRecord::Baseit will always get adapter of primary database which is not correct. As a result, gem just fails when encounters active record queries from not primary database and can't be used at all.Not sure if it's easy fix, but maybe it is worth mentioning it in docs?