lib/mongoid/fields.rb in mongoid-7.2.0.rc1 vs lib/mongoid/fields.rb in mongoid-7.2.0

- old
+ new

@@ -10,10 +10,12 @@ # This module defines behavior for fields. module Fields extend ActiveSupport::Concern + StringifiedSymbol = Mongoid::StringifiedSymbol + # For fields defined with symbols use the correct class. # # @since 4.0.0 TYPE_MAPPINGS = { array: Array, @@ -28,9 +30,10 @@ object_id: BSON::ObjectId, range: Range, regexp: Regexp, set: Set, string: String, + stringified_symbol: StringifiedSymbol, symbol: Symbol, time: Time }.with_indifferent_access # Constant for all names of the id field in a document.