Class: BSON::ObjectID

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

Instance Method Summary collapse

Instance Method Details

#as_json(options = nil) ⇒ Object



183
184
185
# File 'lib/mongo_mapper/support.rb', line 183

def as_json(options=nil)
  to_s
end

#original_to_jsonObject



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

alias_method :original_to_json, :to_json

#to_json(options = nil) ⇒ Object



187
188
189
# File 'lib/mongo_mapper/support.rb', line 187

def to_json(options = nil)
  as_json.to_json
end