app/uploaders/spina/logo_uploader.rb in spina-0.6.29 vs app/uploaders/spina/logo_uploader.rb in spina-0.7.0

- old
+ new

@@ -1,18 +1,8 @@ # encoding: utf-8 - module Spina - class LogoUploader < CarrierWave::Uploader::Base - + class LogoUploader < Spina::DefaultStoreUploader include CarrierWave::MiniMagick - - def store_dir - if Engine.config.storage == :s3 - "#{mounted_as}/#{model.id}" - else - "uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}" - end - end process resize_to_fit: [300, 300] def extension_white_list %w(jpg jpeg gif png) \ No newline at end of file