Fork of mongoid-uuid, using SecureRandom to generate random UUIDs instead of the UUID gems #generate function.
Add this line to your application's Gemfile:
gem 'mongoid-uuid-securerandom'
And then execute:
$ bundle
Or install it yourself as:
$ gem install mongoid-uuid-securerandom
require 'mongoid'
require 'mongoid/uuid'
class Model
include Mongoid::Document
include Mongoid::Uuid
end