Dragonfly::MopedDataStore
Dragonfly data store that uses Moped::GridFS.
Installation
Add this line to your application's Gemfile:
gem 'dragonfly-moped_data_store'
And then execute:
$ bundle
Or install it yourself as:
$ gem install dragonfly-moped_data_store
Usage
You can configure Dragonfly to use the moped datastore in the dragonfly initializer like so:
# config/initializers/dragonfly.rb
require 'dragonfly/moped_data_store'
Dragonfly.app.configure do
datastore :moped, db: 'my-db', host: '127.0.0.1', port: '27017'
end
Contributing
- Fork it ( https://github.com/tomasc/dragonfly-moped_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