Parent

Methods

Class/Module Index [+]

Quicksearch

BSON::ObjectId

Public Instance Methods

as_json(options = nil) click to toggle source
# File lib/mongoid/extensions.rb, line 75
def as_json(options = nil)
  to_s
end
to_xml(options = nil) click to toggle source
# File lib/mongoid/extensions.rb, line 78
def to_xml(options = nil)
  ActiveSupport::XmlMini.to_tag(options[:root], self.to_s, options)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.