I have a model that use both: Carrierwave for store photos, and PaperTrail
for versioning.
I also configured Carrierwave for store diferent files when upda
Adding @beardedd's comment as an answer because I think this is a better way to handle the problem.
Name your database columns something like picture_filename
and then in your model mount the uploader using:
class User < ActiveRecord::Base
has_paper_trail
mount_uploader :picture, PictureUploader, mount_on: :picture_filename
end
You still use the user.picture.url
attribute to access your model but PaperTrail will store revisions under picture_filename
.