Skip to content
Browse files

Just simple content

  • Loading branch information...
1 parent 6dd5e1a commit 9d38de195a9c1b7bda1b596a7da39d7127673782 @equivalent committed Mar 13, 2013
Showing with 17 additions and 0 deletions.
  1. +17 −0 wisdom_inside/scraps2/carrierwave
View
17 wisdom_inside/scraps2/carrierwave
@@ -0,0 +1,17 @@
+
+
+# how to have different storage in test enviroment for carrierwave
+
+ # config/initializers/carrierwave.rb
+ if Rails.env.test? or Rails.env.cucumber?
+ CarrierWave.configure do |config|
+ config.storage = :file
+ config.enable_processing = false
+ end
+ else
+ CarrierWave.configure do |config|
+ config.storage = :fog
+ end
+ end
+
+

0 comments on commit 9d38de1

Please sign in to comment.
Something went wrong with that request. Please try again.