Class: BSON::ObjectId

Inherits:
Object
  • Object
show all
Defined in:
lib/locomotive/mongoid/patches.rb

Instance Method Summary collapse

Instance Method Details

#as_jsonObject


14
15
16
# File 'lib/locomotive/mongoid/patches.rb', line 14

def as_json(*)
  to_s.as_json
end

#to_jsonObject


11
12
13
# File 'lib/locomotive/mongoid/patches.rb', line 11

def to_json(*)
  to_s.to_json
end