Module: Mongoid::Config::Validators::Option
Relationships & Source Files | |
Defined in: | lib/mongoid/config/validators/option.rb |
Overview
Validator for configuration options.
Instance Method Summary
-
#validate(option)
Validate a configuration option.
Instance Method Details
#validate(option)
Validate a configuration option.
# File 'lib/mongoid/config/validators/option.rb', line 17
def validate(option) unless Config.settings.keys.include?(option.to_sym) raise Errors::InvalidConfigOption.new(option) end end