demarches-normaliennes/app/helpers/application_helper.rb

9 lines
159 B
Ruby
Raw Normal View History

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