NoBrainer adapter for CarrierWave
Ruby
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec
.gitignore
Gemfile
README.md
carrierwave-nobrainer.gemspec

README.md

NoBrainer CarrierWave Adapter

carrierwave-nobrainer is an adapter to make CarrierWave work nicely with NoBrainer.

Installation

Include in your Gemfile:

gem 'carrierwave', github: 'carrierwaveuploader/carrierwave'
gem 'carrierwave-nobrainer', github: 'nviennot/carrierwave-nobrainer'

Note: this adapter has only been tested with the master branch of carrierwave, not the 0.10.0 version from Feb. 2014.

Usage

Use carrierwave as usual.

As an added feature, you may pass :filename => 'some_filename.png' to themount_uploader` method options. For example:

mount_uploader :icon, SomeUploader, :filename => 'icon.png'

This will have the effect of not storing this static filename in the document to avoid polluting the DB with useless fields.

License

MIT license.