Class: BSON::ObjectId

Inherits:
Object
  • Object
show all
Defined in:
build/mongoid-6.1/lib/mongoid/extensions.rb

Instance Method Summary collapse

Instance Method Details

#as_json(options = nil) ⇒ Object



3
4
5
# File 'build/mongoid-6.1/lib/mongoid/extensions.rb', line 3

def as_json(options = nil)
  { "$oid" => to_s }
end