Skip to content

Commit

Permalink
Use :file in dev mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Roger Campos committed Sep 14, 2012
1 parent 2596a0d commit a199744
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/uploaders/shot_image_uploader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ class ShotImageUploader < CarrierWave::Uploader::Base
include CarrierWave::MiniMagick

# Choose what kind of storage to use for this uploader:
storage :fog
if Rails.env.production?
storage :fog
else
storage :file
end

# Override the directory where uploaded files will be stored.
# This is a sensible default for uploaders that are meant to be mounted:
Expand Down

0 comments on commit a199744

Please sign in to comment.