module RUUID::Mongoid::Extensions::UUID

Public Instance Methods

mongoize() click to toggle source

Turn the object from the Ruby type we deal with to a Mongo-friendly type.

@return [BSON::Binary]

The mongoized object.
# File lib/ruuid/mongoid/extensions/uuid.rb, line 10
def mongoize
  BSON::Binary.new(data, :uuid)
end