[fix #474] display devise errors with flashes

This commit is contained in:
Mathieu Magnin 2017-06-21 16:14:41 +02:00
parent 2f9f74aa9f
commit 8d008a51d0
3 changed files with 26 additions and 7 deletions

View file

@ -0,0 +1,8 @@
module ApplicationHelper
def flash_class(level)
case level
when "notice" then "alert-success"
when "alert" then "alert-danger"
end
end
end