Skip to content
Snippets Groups Projects
Commit 4fc24fe5 authored by Mateus Rambo Strey's avatar Mateus Rambo Strey
Browse files

Merge branch 'fix-retrieve-url' into 'master'

Fix retrieve url

See merge request !329
parents 470f4277 2e53b7bf
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@ class LearningObjectSerializer < ActiveModel::Serializer
cache key: 'learning_object', expires_in: 4.hours
def default_location
object.default_attachment.try(:retrieve_url)
object_type == ("Vídeo" || "Áudio") ? object.default_attachment.try(:retrieve_cache_link) : object.default_attachment.try(:retrieve_url)
end
def default_mime_type
......
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