From c232b052582995d237c65c13bfbb4bfec8ef4faa Mon Sep 17 00:00:00 2001 From: Karl Coelho Date: Tue, 31 Oct 2017 22:58:46 -0400 Subject: [PATCH] Add .flash-item class to items of list of flash notifs --- lib/sinatra/flash/style.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sinatra/flash/style.rb b/lib/sinatra/flash/style.rb index f09c65e..71b2144 100644 --- a/lib/sinatra/flash/style.rb +++ b/lib/sinatra/flash/style.rb @@ -23,7 +23,7 @@ def styled_flash(key=:flash) return "" if flash(key).empty? id = (key == :flash ? "flash" : "flash_#{key}") messages = flash(key).collect {|message| "
#{message[1]}
\n"} - "
\n" + messages.join + "
" + "
\n" + messages.join + "
" end end