Skip to content

Commit 63b6020

Browse files
committed
Update uploaders to use 'aws' rather than 's3'
This change should fix the application crashing in staging. Carrierwave didn't seem to like :s3 as a storage engine, and having reviewed the docs I think this is the right change.
1 parent 4cba05d commit 63b6020

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/uploaders/avatar_uploader.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# encoding: utf-8
22

33
class AvatarUploader < CarrierWave::Uploader::Base
4-
storage :s3 if Rails.env.production?
4+
storage :aws if Rails.env.production?
55

66
include CarrierWave::MiniMagick
77

app/uploaders/image_uploader.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
class ImageUploader < CarrierWave::Uploader::Base
2-
storage :s3 if Rails.env.production?
2+
storage :aws if Rails.env.production?
33

44
# Include RMagick or MiniMagick support:
55
include CarrierWave::MiniMagick

0 commit comments

Comments
 (0)