#48 thumbnails

This commit is contained in:
Karel Picman 2017-07-20 13:39:23 +02:00
parent 368c2b1e4a
commit dab268306b

View File

@ -31,7 +31,7 @@ module RedmineDmsf
module InstanceMethods
def has_attachments_with_has_attachments_dms?
has_attachments_without_has_attachments_dms? || self.dmsf_files.any?
has_attachments_without_has_attachments_dms? || (defined?(self.dmsf_files) && self.dmsf_files.any?)
end
end