I am building a ruby gem which will require communication with MongoDB. I am using Mongoid as my client driver and I am curious what the best practice is in as far as initializing within the context of a ruby gem. I need to run the following somewhere appropriate:
Mongoid.load!("path/to/your/mongoid.yml", :production)
The question is where is the best place to do this in a ruby gem in order to ensure my MongoDB connection is available throughout my code?