Class: BSON::ObjectId

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

Instance Method Summary collapse

Instance Method Details

#as_json(options = nil) ⇒ Object



5
6
7
# File 'build/mongoid-master/lib/mongoid/extensions.rb', line 5

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