Skip to content
Snippets Groups Projects
Commit df7d4529 authored by bfs15's avatar bfs15
Browse files

download link now calls default location

parent 874829c4
No related branches found
No related tags found
No related merge requests found
......@@ -132,7 +132,7 @@ class LearningObject < ApplicationRecord
# Download link with all relevant objects (currently only one)
def download_link
object_type.try(:name) == ("Vídeo" || "Áudio") ? default_attachment.try(:retrieve_cache_link) : default_attachment.try(:retrieve_url)
default_attachment_location
end
## score methods
......
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