RailsCasts Pro episodes are now free!

Learn more or hide this

Sergey Avseyev's Profile

GitHub User: avsej

Site: http://avsej.net

Comments by Sergey Avseyev

Avatar

The one of drawbacks of using instance variables is that they are nil by default, so your code could silently work incorrectly. decent_exposure help to catch unsused variables. thanks!

Avatar

Maybe I've missed something, but is it normal to download all assets from remote storage (s3) just to determine file size? For example I have 100 videos on production and have just migrated to carrierwave. Files already on S3. So all my production instanced need to have local copies just to display `video.source.size`???

it is according to https://github.com/jnicklas/carrierwave/blob/c9b5cbbe03ba8aca3977/lib/carrierwave/uploader/proxy.rb#L56