app/cells/decidim/blogs/post_g_cell.rb in decidim-blogs-0.28.2 vs app/cells/decidim/blogs/post_g_cell.rb in decidim-blogs-0.28.3
- old
+ new
@@ -7,22 +7,18 @@
class PostGCell < Decidim::CardGCell
delegate :photo, to: :model
private
- def has_image?
- resource_image_path.present?
- end
-
def show_description?
true
end
def metadata_cell
"decidim/blogs/post_metadata_g"
end
- def resource_image_path
+ def resource_image_url
return if photo.blank?
photo.url
end
end