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