Low commit activity in last 3 years
No release in over a year
NoBrainer adapter for Carrierwave
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0.10.0
>= 0.24.0
 Project Readme

NoBrainer CarrierWave Adapter

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

Installation

Include in your Gemfile:

gem 'carrierwave', '>= 2', '< 3'
gem '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 the mount_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.

Storing files in RethinkDB

In the case you need to store files in the RethinkDB database, this gem also add a Carrierwave storage for NoBrainer.

To use it, in your uploader set the storage to :nobrainer

class AvatarUploader < CarrierWave::Uploader::Base
  storage :nobrainer
end

License

MIT license.