模块:Mongoid::Indexable::Validators::Options
Overview
验证传递给索引宏的选项。
常量摘要折叠
- VALID_OPTIONS =
%i[ 背景 database default_ language language_override 名称 稀疏 unique Max min 位 bucket_size expire_after_seconds 权重 storage_engine key sphere_version text_version 版本 partial_filter_expression 排序规则 wildcard_projection ]
- VALID_TYPES =
[ 1, -1, '2d', '2dsphere', 'geoHaystack', 'text', ' 哈希 ' ]
实例方法摘要折叠
实例方法详细信息
# validate (klass, spec, options) ⇒对象
验证索引规范。
54 55 56 57 |
# File 'lib/mongoid/indexable/validators/options.rb', line 54 def 验证(klass, spec, ) validate_spec(klass, spec, ) (klass, spec, ) end |