Class: BSON::ObjectID
Instance Method Summary collapse
Instance Method Details
#as_json(options = nil) ⇒ Object
183 184 185 |
# File 'lib/mongo_mapper/extensions.rb', line 183 def as_json(=nil) to_s end |
#original_to_json ⇒ Object
181 |
# File 'lib/mongo_mapper/extensions.rb', line 181 alias_method :original_to_json, :to_json |
#to_json(options = nil) ⇒ Object
187 188 189 |
# File 'lib/mongo_mapper/extensions.rb', line 187 def to_json( = nil) as_json.to_json end |