Module: Mongoid::Clients::Validators::Storage
Overview
Validates the options passed to :store_in.
Constant Summary collapse
- VALID_OPTIONS =
The valid options for storage.
[ :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.
22 23 24 |
# File 'lib/mongoid/clients/validators/storage.rb', line 22 def validate(klass, ) valid_keys?() or raise Errors::InvalidStorageOptions.new(klass, ) end |