Skip to content
Snippets Groups Projects
Commit 070cc735 authored by Clarissa's avatar Clarissa
Browse files

Merge branch 'master' of gitlab.c3sl.ufpr.br:portalmec/portalmec into issue/275

parents 2b93980a 01a13858
No related branches found
No related tags found
No related merge requests found
......@@ -120,6 +120,10 @@ class LearningObject < ApplicationRecord
return attachment unless attachment.nil?
unless attachments.blank?
if object_type.try(:name) == 'Vídeo'
at = attachments.where("name LIKE '%.mp4'").first
return at unless at.nil?
end
at = attachments.find_by(bundle_name: 'ORIGINAL')
at = attachments.first if at.nil?
update(attachment: at)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment