mongoid-grid_fs
Go to file
2012-10-18 15:49:06 -04:00
lib information on creating indexes and hooking into mongoid rake tasks 2012-10-18 15:49:06 -04:00
test match the chunk size in the 10gen mongo driver to solve connection issues when saving large files, and get tests working again 2012-10-18 14:09:46 -04:00
.gitignore v1.3.0 2012-07-24 21:17:05 -06:00
mongoid-grid_fs.gemspec update deps. v1.3.2 2012-07-27 09:11:20 -06:00
mongoid-sequence.gemspec first commit 2012-08-10 09:06:48 -06:00
Rakefile first commit 2012-08-10 09:06:48 -06:00
README.md information on creating indexes and hooking into mongoid rake tasks 2012-10-18 15:49:06 -04:00

NAME

mongoid-sequence mongoid-grid_fs

INSTALL

gem install mongoid-sequence gem install mongoid-grid_fs

SYNOPSIS


  require 'mongoid'
  require 'mongoid-sequence'


  class Page
    include Mongoid::Document
    include Mongoid::Sequence

    sequence :number
  end

  p Page.create.number #=> 1
  p Page.create.number #=> 2
  p Page.create.number #=> 3


DESCRIPTION

mongoid_sequence is a pure mongoid sequence generator based on mongodb's increment operator

GRIDFS

Be sure to create indexes for the GridFS collections with rake db:mongoid:create_indexes.