demarches-normaliennes/app/helpers/application_helper.rb
2017-06-21 18:07:58 +02:00

8 lines
159 B
Ruby

module ApplicationHelper
def flash_class(level)
case level
when "notice" then "alert-success"
when "alert" then "alert-danger"
end
end
end