Sha256: 67605cc0fd505d2f0859cda762e0f971a453d4c873236e064f38482e823fdf50
Contents?: true
Size: 599 Bytes
Versions: 27
Compression:
Stored size: 599 Bytes
Contents
# frozen_string_literal: true # encoding: utf-8 module Mongoid module Config module Validators # Validator for configuration options. module Option extend self # Validate a configuration option. # # @example Validate a configuration 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
27 entries across 27 versions & 2 rubygems