Sha256: 7ff017b2ae51d5b8b979397e32a6e26b732d8fa14768b3c6400946cb24638a16
Contents?: true
Size: 666 Bytes
Versions: 105
Compression:
Stored size: 666 Bytes
Contents
# encoding: utf-8 module Mongoid module Errors # This error is raised when a bad configuration option is attempted to be # set. class InvalidConfigOption < MongoidError # Create the new error. # # @example Create the new error. # InvalidConfigOption.new(:name, [ :option ]) # # @param [ Symbol, String ] name The attempted config option name. # # @since 3.0.0 def initialize(name) super( compose_message( "invalid_config_option", { name: name, options: Config.settings.keys.map(&:inspect).join(", ") } ) ) end end end end
Version data entries
105 entries across 100 versions & 7 rubygems