This gem adds support for TrueVault to the CarrierWave.
Add this line to your application's Gemfile:
gem 'carrierwave-truevault'
And then execute:
$ bundle
Or install it yourself as:
$ gem install carrierwave-truevault
You'll need to add a configuration block in your config/initializers/carrierwave.rb
file.
CarrierWave.configure do |config|
config.truevault_api_key = "xxxxxx......"
config.truevault_vault_id = "xxxxx......"
config.truevault_attributes = {}
end
In your uploader add truevault as the storage option:
class DocumentUploader < CarrierWave::Uploader::Base
storage :truevault
end
- Fork it ( https://github.com/codemancode/carrierwave-truevault/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