Mongoid fixed uuid field using SecureRandom for UUID generation
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib/mongoid
spec
.coveralls.yml
.gitignore
.rspec
.travis.yml
Gemfile
Guardfile
LICENSE.txt
README.md
Rakefile
mongoid-uuid-securerandom.gemspec

README.md

Mongoid::Uuid

Fork of mongoid-uuid, using SecureRandom to generate random UUIDs instead of the UUID gems #generate function.

Installation

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

Usage

require 'mongoid'
require 'mongoid/uuid'

class Model
  include Mongoid::Document
  include Mongoid::Uuid
end