Sha256: f8e85b748a19a78e2f6e208bab60779c31d4266feb3d4383d335be2d0a49b008
Contents?: true
Size: 395 Bytes
Versions: 12
Compression:
Stored size: 395 Bytes
Contents
module Adminpanel class RandomPagefile < Image # include Adminpanel::SortableGallery mount_uploader :file, RandomPagefileUploader # Warning: This method prevents the file from recreating versions, # use it at your own risk delete the original file # def remove_original attachment # File.delete "#{Rails.root.join('public')}#{file_url}" if file # end end end
Version data entries
12 entries across 12 versions & 1 rubygems