https://github.com/tomasc/dragonfly-mongoid_data_store
Dragonfly data store that uses Mongoid::GridFS.
https://github.com/tomasc/dragonfly-mongoid_data_store
Last synced: about 1 year ago
JSON representation
Dragonfly data store that uses Mongoid::GridFS.
- Host: GitHub
- URL: https://github.com/tomasc/dragonfly-mongoid_data_store
- Owner: tomasc
- License: mit
- Created: 2014-09-01T12:55:11.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2023-11-17T13:00:50.000Z (over 2 years ago)
- Last Synced: 2025-04-15T00:36:48.650Z (about 1 year ago)
- Language: Ruby
- Homepage:
- Size: 30.3 KB
- Stars: 1
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Dragonfly::MongoidDataStore
[](https://github.com/tomasc/dragonfly-mongoid_data_store/actions/workflows/test.yml) [](http://badge.fury.io/rb/dragonfly-mongoid_data_store) [](https://coveralls.io/r/tomasc/dragonfly-mongoid_data_store)
[Dragonfly](https://github.com/markevans/dragonfly) data store that uses [Mongoid::GridFs](https://github.com/ahoward/mongoid-grid_fs).
Data store similar to [dragonfly-mongo_data_store](https://github.com/markevans/dragonfly-mongo_data_store) which works with [Dragonfly](https://github.com/markevans/dragonfly) > 1 and [Mongoid](https://github.com/mongoid/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:
```ruby
# 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