diff options
-rw-r--r-- | app/models/attachment.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/attachment.rb b/app/models/attachment.rb index a89a0c37e..b5a3332ac 100644 --- a/app/models/attachment.rb +++ b/app/models/attachment.rb @@ -347,7 +347,7 @@ class Attachment < ActiveRecord::Base end def self.archive_attachments(out_file, attachments) - attachments = attachments.select{|attachment| File.readable?(attachment.diskfile) } + attachments = attachments.select(&:readable?) return nil if attachments.blank? Zip.unicode_names = true |