app/helpers/pulitzer/posts_helper.rb in pulitzer-0.10.1 vs app/helpers/pulitzer/posts_helper.rb in pulitzer-0.10.2
- old
+ new
@@ -21,10 +21,10 @@
content_tag(:iframe, nil, src: element.video_link) if element.video_link
end
def render_element(element)
if element.image_type?
- image_tag element.image_url(:thumb)
+ image_tag(element.image_url(:thumb)) if element.image?
elsif element.video_type?
render_video(element)
else
element.body.html_safe if element.body
end