Sha256: f1e15190288d994cacdaafc69f3199d05a4034949e9a6b0d95050013016125c1
Contents?: true
Size: 568 Bytes
Versions: 47
Compression:
Stored size: 568 Bytes
Contents
# encoding: utf-8 module Mongoid module Config module Validators # Validator for configuration options. module Option extend self # Validate a configuration option. # # @example Validate a configuraiton option. # # @param [ String ] option The name of the option. # # @since 3.0.0 def validate(option) unless Config.settings.keys.include?(option.to_sym) raise Errors::InvalidConfigOption.new(option) end end end end end end
Version data entries
47 entries across 47 versions & 6 rubygems