fixed last card, flash and options

This commit is contained in:
2022-12-14 17:17:16 +02:00
parent 523c5c97a0
commit b4f6e6b894
9 changed files with 76 additions and 66 deletions

View File

@ -17,7 +17,7 @@ module Merged
end
# works for with sections and cards that respond to .image
def image_for(element , classes)
def image_for(element , classes = "")
return "" if element.image.blank?
image_tag("#{Image.image_root}/#{element.image}" , class: classes)
end