Is there a way to rename files after upload? I want files to match model id after it is saved:
# image.rb
after_create :rename_file
def rename_file
file.rename!(id)
end
But I can't find a simple way to do this.
Update The method file.move_to
was in Carrierwave 0.9.0 but was removed since.