https://github.com/tomasc/dragonfly-moped_data_store
Dragonfly data store that uses Moped::GridFS.
https://github.com/tomasc/dragonfly-moped_data_store
Last synced: 9 months ago
JSON representation
Dragonfly data store that uses Moped::GridFS.
- Host: GitHub
- URL: https://github.com/tomasc/dragonfly-moped_data_store
- Owner: tomasc
- License: mit
- Created: 2014-09-01T10:50:44.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-09-03T08:06:27.000Z (almost 12 years ago)
- Last Synced: 2025-07-27T14:51:09.063Z (11 months ago)
- Language: Ruby
- Homepage:
- Size: 152 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Dragonfly::MopedDataStore
[](https://travis-ci.org/tomasc/dragonfly-moped_data_store) [](http://badge.fury.io/rb/dragonfly-moped_data_store) [](https://coveralls.io/r/tomasc/dragonfly-moped_data_store)
[Dragonfly](https://github.com/markevans/dragonfly) data store that uses [Moped::GridFS](https://github.com/topac/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:
```ruby
# 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
1. Fork it ( https://github.com/tomasc/dragonfly-moped_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