From 7c0aff06805f1bf668210fbb982d70efed1eafdb Mon Sep 17 00:00:00 2001 From: Jorge Manrubia Date: Wed, 23 Apr 2025 13:36:39 +0200 Subject: [PATCH] Don't indent case --- app/helpers/notifications_helper.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app/helpers/notifications_helper.rb b/app/helpers/notifications_helper.rb index cc63fb5d5..7ed4813aa 100644 --- a/app/helpers/notifications_helper.rb +++ b/app/helpers/notifications_helper.rb @@ -1,9 +1,9 @@ module NotificationsHelper def event_notification_title(event) case event_notification_action(event) - when "commented" then "RE: " + event.card.title - when "assigned" then "Assigned to you: " + event.card.title - else event.card.title + when "commented" then "RE: " + event.card.title + when "assigned" then "Assigned to you: " + event.card.title + else event.card.title end end @@ -11,10 +11,10 @@ module NotificationsHelper name = event.creator.name case event_notification_action(event) - when "closed" then "Closed by #{name}" - when "published" then "Added by #{name}" - when "commented" then comment_notification_body(event) - else name + when "closed" then "Closed by #{name}" + when "published" then "Added by #{name}" + when "commented" then comment_notification_body(event) + else name end end