Permalink
Browse files

change store dir in production

  • Loading branch information...
1 parent ceb5585 commit a474c18cdb0abe989134a59429d902b65db26e38 @jonmagic committed Oct 21, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/pdf_uploader.rb
View
@@ -9,6 +9,8 @@ def cache_dir
def store_dir
if PdfArchive.environment == 'test'
"#{PdfArchive.root}/tmp/documents/#{model.id}"
+ elsif PdfArchive.environment == 'production'
+ "documents/#{model.id}"
else
"#{PdfArchive.root}/public/documents/#{model.id}"
end

0 comments on commit a474c18

Please sign in to comment.