mirror of
https://github.com/kemko/paperclip.git
synced 2026-01-01 16:05:40 +03:00
Merge pull request #75 from insales/do_not_fail_on_empty_attach_keys
Не падаем при попытке получить ключ пустого аттача
This commit is contained in:
@@ -69,6 +69,8 @@ module Paperclip
|
||||
end
|
||||
|
||||
def key(style = default_style)
|
||||
return if original_filename.nil?
|
||||
|
||||
interpolate(self.class.key_template, style)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user