1
0
Fork 0

Do not display invalid alert

This commit is contained in:
Alex Kotov 2019-02-02 09:52:55 +05:00
parent 3fac766bef
commit 3398877fe8
Signed by: kotovalexarian
GPG Key ID: 553C0EBBEB5D5F08
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
<% unless flash.empty? %>
<div class="container">
<% flash.each do |type, msg| %>
<% flash.select { |_, msg| msg.is_a? String }.each do |type, msg| %>
<div class="alert <%= bootstrap_class_for_flash type %> alert-dismissable fade show mt-3">
<%= msg %>
<button class="close" data-dismiss="alert">x</button>