Carrierwave plugin to mount image uploader to postgresql json & hstore fields.
Add this line to your application's Gemfile:
gem 'carrierwave_accessors'
And then execute:
$ bundle
Or install it yourself as:
$ gem install carrierwave_accessors
You don't need to add anything special
class User < ActiveRecord::Base
store_accessor :data, :cover_image
store_accessor :settings, :profile_image
mount_uploader :cover_image, CoverUploader
mount_uploader :profile_image, ProfileUploader
end
- Fork it ( https://bitbucket.org/antonovga/carrierwave_accessors )
- 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