From ee6456a16a44c05df0caf7f6a911083670f4e201 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Mon, 1 Sep 2014 17:58:55 +0800 Subject: [PATCH] changed assets upload dirctory to public/uploads --- app/uploaders/asset_uploader.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/uploaders/asset_uploader.rb b/app/uploaders/asset_uploader.rb index 2d040a2..0ed1d48 100644 --- a/app/uploaders/asset_uploader.rb +++ b/app/uploaders/asset_uploader.rb @@ -18,7 +18,7 @@ class AssetUploader < CarrierWave::Uploader::Base # Override the directory where uploaded files will be stored. # This is a sensible default for uploaders that are meant to be mounted: def store_dir - "uploaded_assets/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}" + "uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}" end # Provide a default URL as a default if there hasn't been a file uploaded: