Sets the Mongoid configuration options. Best used by passing a block.
@example Set up configuration options.
Mongoid.configure do |config| config.allow_dynamic_fields = false config.use(name: "mongoid_test", host: "localhost", port: 27017) end
@return [ Config ] The configuration object.
@since 1.0.0
# File lib/mongoid.rb, line 110 def configure block_given? ? yield(Config) : Config end
Generated with the Darkfish Rdoc Generator 2.