Skip to content

Tire (elasticsearch) support for CarrierWave

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.txt
Notifications You must be signed in to change notification settings

megorei/carrierwave-tire

Repository files navigation

Carrierwave::Tire

This gem provides CarrierWave functionality in Classes persisted by Tire

Installation

Add this line to your application's Gemfile:

gem 'carrierwave-tire', git: "[email protected]:megorei/carrierwave-tire.git"

And then execute:

$ bundle

Or install it yourself as:

$ gem install carrierwave-tire

Usage

Include CarrierWave::Tire mounter into your model and mount your uploader on a property. For more information about how to write an uploader see CarrierWave documentation.

class Article
  include Tire::Model::Persistence
  include CarrierWave::Tire

  property :filename

  mount_uploader :image, ImageUploader, mount_on: :filename
end

Contributing

  1. Fork it
  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 new Pull Request

About

Tire (elasticsearch) support for CarrierWave

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.txt

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages