app/uploaders/spina/default_store_uploader.rb in spina-0.8.0 vs app/uploaders/spina/default_store_uploader.rb in spina-0.8.1
- old
+ new
@@ -1,9 +1,9 @@
module Spina
class DefaultStoreUploader < CarrierWave::Uploader::Base
def store_dir
- case Spina.config.storage
+ case ::Spina.config.storage
when :s3
"#{mounted_as}/#{model.class.to_s.underscore}/#{model.id}"
when :file
"uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
else