|
@@ -7,14 +7,4 @@ module ApplicationHelper
|
|
|
notice: "alert-info"
|
|
|
}.stringify_keys[flash_type.to_s] || flash_type.to_s
|
|
|
end
|
|
|
-
|
|
|
- def flash_messages(opts={})
|
|
|
- flash.each do |msg_type, message|
|
|
|
- concat(content_tag(:div, message, class: "alert #{bootstrap_class_for(msg_type)}") do
|
|
|
- concat content_tag(:button, content_tag(:span, "×"), class: "close", data: { dismiss: 'alert' })
|
|
|
- concat message
|
|
|
- end)
|
|
|
- end
|
|
|
- nil
|
|
|
- end
|
|
|
end
|