app/helpers/uploadbox/img_helper.rb in uploadbox-0.0.22 vs app/helpers/uploadbox/img_helper.rb in uploadbox-0.0.23

- old
+ new

@@ -7,11 +7,11 @@ def s3_signature Base64.encode64( OpenSSL::HMAC.digest( OpenSSL::Digest::Digest.new('sha1'), - ENV['S3_SECRET'], + CarrierWave::Uploader::Base.fog_credentials[:aws_access_key_id], s3_policy ) ).gsub("\n", "") end @@ -29,10 +29,10 @@ expiration: 10.hours.from_now.utc.iso8601, conditions: [ ["starts-with", "$key", 'uploads/'], ["content-length-range", 0, 500.megabytes], ["starts-with","$content-type",""], - {bucket: ENV['S3_BUCKET']}, + {bucket: CarrierWave::Uploader::Base.fog_directory}, {acl: 'public-read'} ] } end end