Dragonfly data store that uses Mongoid::GridFs.
Data store similar to dragonfly-mongo_data_store which works with Dragonfly > 1 and Mongoid > 4.
- mongoid 5, 6, 7, and 8
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
# ...
end
Remember the require!
- Fork it ( https://github.com/tomasc/dragonfly-mongoid_data_store/fork )
- 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 a new Pull Request