app/uploaders/file_uploader.rb in lolita-file-upload-0.2.9 vs app/uploaders/file_uploader.rb in lolita-file-upload-0.3.0

- old
+ new

@@ -17,12 +17,12 @@ end # With slash in first place it will be absolute url, otherwise relative to Rails.root+"/public" def store_dir if model - "upload/#{model.class.to_s.underscore}/#{timestamp}/#{model.id}" + "uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{timestamp}/#{model.id}" else - "upload/misc" + "uploads/misc" end end def delete_empty_upstream_dirs path = ::File.expand_path(store_dir, root) \ No newline at end of file