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

Version Path
adminpanel-3.6.1 lib/generators/adminpanel/gallery/templates/gallery_template.rb
adminpanel-3.6.0 lib/generators/adminpanel/gallery/templates/gallery_template.rb
adminpanel-3.5.1 lib/generators/adminpanel/gallery/templates/gallery_template.rb
adminpanel-3.5.0 lib/generators/adminpanel/gallery/templates/gallery_template.rb
adminpanel-3.4.7 lib/generators/adminpanel/gallery/templates/gallery_template.rb
adminpanel-3.4.6 lib/generators/adminpanel/gallery/templates/gallery_template.rb
adminpanel-3.4.5 lib/generators/adminpanel/gallery/templates/gallery_template.rb
adminpanel-3.4.4 lib/generators/adminpanel/gallery/templates/gallery_template.rb
adminpanel-3.4.3 lib/generators/adminpanel/gallery/templates/gallery_template.rb
adminpanel-3.4.2 lib/generators/adminpanel/gallery/templates/gallery_template.rb
adminpanel-3.4.1 lib/generators/adminpanel/gallery/templates/gallery_template.rb
adminpanel-3.4.0 lib/generators/adminpanel/gallery/templates/gallery_template.rb
adminpanel-3.3.4 lib/generators/adminpanel/gallery/templates/gallery_template.rb
adminpanel-3.3.3 lib/generators/adminpanel/gallery/templates/gallery_template.rb
adminpanel-3.3.0 lib/generators/adminpanel/gallery/templates/gallery_template.rb
adminpanel-3.2.1 lib/generators/adminpanel/gallery/templates/gallery_template.rb
adminpanel-3.2.0 lib/generators/adminpanel/gallery/templates/gallery_template.rb
adminpanel-3.1.0 lib/generators/adminpanel/gallery/templates/gallery_template.rb
adminpanel-3.0.0 lib/generators/adminpanel/gallery/templates/gallery_template.rb