Low commit activity in last 3 years
No release in over a year
Dragonfly data store that uses Mongoid::GridFs.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

Dragonfly::MongoidDataStore

Tests 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.

Requirements

  • mongoid 5, 6, 7, and 8

Installation

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

Usage

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

  # ...
end

Remember the require!

Contributing

  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