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
Got it!
Mongoid.default_session.options[:database]