Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 15th, 2012  |  syntax: None  |  size: 0.97 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. The following changes since commit 33f478089a61e32562180c9b0de8781fc6e00735:
  2.  
  3.   carrier_wave now works with heroku (2011-09-05 04:47:28 +0200)
  4.  
  5. are available in the git repository at:
  6.   git@codeplane.com:elland/pixplx.git carrierwave_heroku
  7.  
  8. Igor Ranieri Elland (1):
  9.       but only uses S3 on production env
  10.  
  11.  app/uploaders/image_uploader.rb |    3 ++-
  12.  1 files changed, 2 insertions(+), 1 deletions(-)
  13.  
  14. diff --git a/app/uploaders/image_uploader.rb b/app/uploaders/image_uploader.rb
  15. index d6e0256..b240acf 100644
  16. --- a/app/uploaders/image_uploader.rb
  17. +++ b/app/uploaders/image_uploader.rb
  18. @@ -9,7 +9,8 @@ class ImageUploader < CarrierWave::Uploader::Base
  19.  
  20.    # Choose what kind of storage to use for this uploader:
  21.    #storage :file
  22. -  storage :fog
  23. +  storage :fog if Rails.env == "production"
  24. +  storage :file unless Rails.env == "production"
  25.  
  26.    # Override the directory where uploaded files will be stored.
  27.    # This is a sensible default for uploaders that are meant to be mounted: