Sha256: a19fdacc062940aecf24902fa74526692e416c594a816f606232ee48e67132b3
Contents?: true
Size: 410 Bytes
Versions: 19
Compression:
Stored size: 410 Bytes
Contents
module Adminpanel class <%= class_name %> < Image # include Adminpanel::SortableGallery mount_uploader :file, <%= class_name %>Uploader # 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
19 entries across 19 versions & 1 rubygems