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

Version Path
adminpanel-3.6.1 test/dummy/app/models/adminpanel/random_pagefile.rb
adminpanel-3.6.0 test/dummy/app/models/adminpanel/random_pagefile.rb
adminpanel-3.5.1 test/dummy/app/models/adminpanel/random_pagefile.rb
adminpanel-3.5.0 test/dummy/app/models/adminpanel/random_pagefile.rb
adminpanel-3.4.7 test/dummy/app/models/adminpanel/random_pagefile.rb
adminpanel-3.4.6 test/dummy/app/models/adminpanel/random_pagefile.rb
adminpanel-3.4.5 test/dummy/app/models/adminpanel/random_pagefile.rb
adminpanel-3.4.4 test/dummy/app/models/adminpanel/random_pagefile.rb
adminpanel-3.4.3 test/dummy/app/models/adminpanel/random_pagefile.rb
adminpanel-3.4.2 test/dummy/app/models/adminpanel/random_pagefile.rb
adminpanel-3.4.1 test/dummy/app/models/adminpanel/random_pagefile.rb
adminpanel-3.4.0 test/dummy/app/models/adminpanel/random_pagefile.rb