Skip to content

ConceptYard/mongoid-uuid-securerandom

 
 

Repository files navigation

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

About

Mongoid fixed uuid field using SecureRandom for UUID generation

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%