From 5c583acf05f823a78806b4e32443c8d7a894a141 Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Wed, 4 Jan 2023 17:49:52 +0100 Subject: [PATCH] Give `bootstrap_color` a proper argument --- app/helpers/bootstrap_helper.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/helpers/bootstrap_helper.rb b/app/helpers/bootstrap_helper.rb index 66eca988..6fe2cef2 100644 --- a/app/helpers/bootstrap_helper.rb +++ b/app/helpers/bootstrap_helper.rb @@ -74,14 +74,14 @@ module BootstrapHelper ## # - def bootstrap_color(c) - case c + def bootstrap_color(color) + case color when "error", "alert" "danger" when "notice" "info" else - c + color end end end