diff --git a/app.groovy b/app.groovy index f2c3032e..c5473c4a 100644 --- a/app.groovy +++ b/app.groovy @@ -100,6 +100,9 @@ class MainController { if (style==null || style.size()==0) { style = [""] } + if (!style.class.isArray() && !(style instanceof Collection)) { + style = [style] + } model["styles"] = style.collect{ it=="" ? "" : "-" + it } log.info("Model: " + model)