lib/mongoid/indexes/validators/options.rb in mongoid-3.0.15 vs lib/mongoid/indexes/validators/options.rb in mongoid-3.0.16

- old
+ new

@@ -5,10 +5,22 @@ # Validates the options passed to the index macro. module Options extend self - VALID_OPTIONS = [ :background, :drop_dups, :name, :sparse, :unique, :max, :min, :bits, :bucket_size ] + VALID_OPTIONS = [ + :background, + :drop_dups, + :name, + :sparse, + :unique, + :max, + :min, + :bits, + :bucket_size, + :expire_after_seconds + ] + VALID_TYPES = [ 1, -1, "2d", "geoHaystack" ] # Validate the index specification. # # @example Validate the index spec.