Add optional image_url parameter to social sharing partial.

This commit is contained in:
Senén Rodero Rodríguez
2017-06-21 20:57:46 +02:00
parent 4f5a552486
commit 534aa4146e
2 changed files with 6 additions and 3 deletions

View File

@@ -120,6 +120,7 @@
<%= render partial: 'shared/social_share', locals: {
share_title: t("budgets.investments.show.share"),
title: investment.title,
image_url: investment.image.exists? ? URI(request.url) + investment.image.url(:thumb) : '',
url: budget_investment_url(budget_id: investment.budget_id, id: investment.id)
} %>