Give `bootstrap_color` a proper argument

This commit is contained in:
Andreas Nedbal 2023-01-04 17:49:52 +01:00 committed by Andreas Nedbal
parent 176a79c0df
commit 5c583acf05
1 changed files with 3 additions and 3 deletions

View File

@ -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