I am talking to multiple databases using Mongoid.override_database(\"database_name\") using Mongoid with rails. How do I find the current database programmatically?
Mon
If you want the overrided database you actually need to use
Mongoid::Threaded.database_override