Module: Mongoid::Clients::Validators::Storage
Overview
Validates the options passed to :store_in.
Constant Summary collapse
- VALID_OPTIONS =
The valid options for storage.
%i[collection collection_options database client].freeze
Instance Method Summary collapse
-
#validate(klass, options) ⇒ Object
Validate the options provided to :store_in.
Instance Method Details
#validate(klass, options) ⇒ Object
Validate the options provided to :store_in.
20 21 22 |
# File 'lib/mongoid/clients/validators/storage.rb', line 20 def validate(klass, ) valid_keys?() or raise Errors::InvalidStorageOptions.new(klass, ) end |