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
The new way to get this is
Mongoid::Config.clients["default"]["database"]
You can also just have a look at
Mongoid::Config.clients
to see what else is available.