diff --git a/lib/paperclip/storage/no_cache_s3.rb b/lib/paperclip/storage/no_cache_s3.rb index d72d860..5faa821 100644 --- a/lib/paperclip/storage/no_cache_s3.rb +++ b/lib/paperclip/storage/no_cache_s3.rb @@ -69,6 +69,8 @@ module Paperclip end def key(style = default_style) + return if original_filename.nil? + interpolate(self.class.key_template, style) end