Mongoid4::UUID
TODO: Write a gem description
Installation
Add this line to your application's Gemfile:
gem 'mongoid4-uuid'
And then execute:
$ bundle
Or install it yourself as:
$ gem install mongoid4-uuid
Usage
Include this module in your Mongoid models and you will get UUID's for _id's
class Model
include Mongoid::Document
include Mongoid4::UUID
end
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request