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

fix learning objects helper

parent 03294fc7
No related branches found
No related tags found
No related merge requests found
...@@ -5,7 +5,7 @@ module LearningObjectsHelper ...@@ -5,7 +5,7 @@ module LearningObjectsHelper
end end
def learning_object_thumbnail(learning_object, size = "") def learning_object_thumbnail(learning_object, size = "")
if learning_object.thumbnail.nil? if learning_object.thumbnail.empty?
if size == "large" if size == "large"
image_tag 'learning-object-preview-large.png', class: "thumbnail" image_tag 'learning-object-preview-large.png', class: "thumbnail"
else else
......
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