aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tasks/release.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/tasks/release.rb b/tasks/release.rb
index 214c1fd16e..ddf491d858 100644
--- a/tasks/release.rb
+++ b/tasks/release.rb
@@ -213,7 +213,9 @@ namespace :all do
description %>\n</p>
<p>
- <%= image_tag @user.avatar.representation(resize_to_fit: [500, 500]) %>
+ <% if @user.avatar.attached? -%>
+ <%= image_tag @user.avatar.representation(resize_to_fit: [500, 500]) %>
+ <% end -%>
</p>
CODE