diff options
Diffstat (limited to 'app/models/attachment.rb')
-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 8e3d578e5..d1d7c6dd0 100644 --- a/app/models/attachment.rb +++ b/app/models/attachment.rb @@ -294,7 +294,7 @@ class Attachment < ActiveRecord::Base def self.latest_attach(attachments, filename) attachments.sort_by(&:created_on).reverse.detect do |att| - att.filename.downcase == filename.downcase + filename.casecmp(att.filename) == 0 end end |