ee5342a8882c2fc7631fcffb5497e6597747887cTim Reddehase type = :info unless FLASH_TYPES.include?(type)
ee5342a8882c2fc7631fcffb5497e6597747887cTim Reddehase message = '<a class="close" data-dismiss="alert">×</a>'.html_safe << h(message)
ee5342a8882c2fc7631fcffb5497e6597747887cTim Reddehase out << content_tag(:div, message, :class => "flash alert alert-#{type}")
ee5342a8882c2fc7631fcffb5497e6597747887cTim Reddehase out.html_safe
ee5342a8882c2fc7631fcffb5497e6597747887cTim Reddehase def format_error_message(msg)
ee5342a8882c2fc7631fcffb5497e6597747887cTim Reddehase return if msg.blank?
ee5342a8882c2fc7631fcffb5497e6597747887cTim Reddehase preserve content_tag(:div, msg, class: 'alert alert-danger error-message')