Skip to content
This repository has been archived by the owner on Feb 26, 2023. It is now read-only.

warrenguy/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