Class: Mongo::ObjectID

Inherits:
Object show all
Defined in:
lib/mongo_mapper/support.rb

Instance Method Summary collapse

Instance Method Details

#original_to_jsonObject



204
# File 'lib/mongo_mapper/support.rb', line 204

alias_method :original_to_json, :to_json

#to_json(options = nil) ⇒ Object



206
207
208
# File 'lib/mongo_mapper/support.rb', line 206

def to_json(options = nil)
  %Q("#{to_s}")
end