I have 2 models with same name but in different mongo db's. I want to access these 2 models in one rails application. How can I do that?
I have referred to this question but I am not sure how it fetches data if it has same model name : Mongoid: using more than one database?
PS: I have also referred similar questions on stack overflow but some of them are for mysql db and I am not sure how I can use same thing for mongo db.