Build Status Gem Version Coverage Status

Dragonfly data store that uses Mongoid::GridFs.

Data store similar to dragonfly-mongo_data_store which works with Dragonfly > 1 and Mongoid > 4.


Add this line to your application's Gemfile:

gem 'dragonfly-mongoid_data_store'

And then execute:

$ bundle

Or install it yourself as:

$ gem install dragonfly-mongoid_data_store


You can configure Dragonfly to use the mongoid datastore in the dragonfly initializer like so:

# config/initializers/dragonfly.rb

require 'dragonfly/mongoid_data_store'

Dragonfly.app.configure do
  # ...

  datastore :mongoid

  # ...

Remember the require!


  1. Fork it ( https://github.com/tomasc/dragonfly-mongoid_data_store/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request