Module: Virtuatable::Builders::Helpers::Mongoid
- Extended by:
- ActiveSupport::Concern
- Included in:
- Base
- Defined in:
- lib/virtuatable/builders/helpers/mongoid.rb
Overview
Loads the Mongoid Configuration given the folder from where the application is loaded, and the type of job requiring it (specs or a service basically)
Instance Method Summary collapse
Instance Method Details
#load_mongoid! ⇒ Object
15 16 17 18 |
# File 'lib/virtuatable/builders/helpers/mongoid.rb', line 15 def load_mongoid! filepath = File.join(@directory, 'config', 'mongoid.yml') ::Mongoid.load!(filepath, @mode) end |