开发者

How can I resolve the Paperclip conflict with RightAWS and AWS-S3 gems

开发者 https://www.devze.com 2023-03-06 10:42 出处:网络
I must use RightAWS for certain things. However, I can only get Paperclip uploads to S3 working开发者_开发技巧 when RightAWS is nowhere in my Gemfile. Since v2.3.11, Paperclip has used AWS-S3, switchi

I must use RightAWS for certain things. However, I can only get Paperclip uploads to S3 working开发者_开发技巧 when RightAWS is nowhere in my Gemfile. Since v2.3.11, Paperclip has used AWS-S3, switching from RightAWS.

RightAWS allows me to check the existence of an object without downloading the entire object via the head? method. It also allows me to stream massive amounts of files from a bucket in 1,000 unit chunks with its incrementally_list_bucket method. I haven't found a way to duplicate this functionality in AWS-S3. I do not have the time currently to implement this and contribute it either.

Can anyone tell me if there is a way to load both of these AWS gems in a Rails 3 project without causing Paperclip to cause the "wrong number of arguments (4 for 5) error?


Ta dahhh. Changing my Gemfile from:

gem 'aws-s3'

to:

gem 'aws-s3', :require => 'aws/s3'

fixed the problem!

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号