Class: Mongo::Undefined

Inherits:
Object
  • Object
show all
Defined in:
lib/mongo/types/undefined.rb

Overview

DEPRECATED - the ruby driver converts the BSON undefined type to nil, and saves this type as nil

Instance Method Summary collapse

Constructor Details

#initializeUndefined

Returns a new instance of Undefined.



23
24
25
26
# File 'lib/mongo/types/undefined.rb', line 23

def initialize
  super
  warn "the Undefined type is deprecated and will be removed - BSON undefineds get implicitly converted to nil now"
end