lib/dvl/flashes/views/flashes.rb in dvl-flashes-0.0.1 vs lib/dvl/flashes/views/flashes.rb in dvl-flashes-0.0.2
- old
+ new
@@ -4,11 +4,11 @@
needs :flash
def content
@flash.select { |k, v| k.to_s.in?(%w(success error info)) && v.present? }.each do |k, v|
div(class: "flash flash_#{k}") {
- a.close '×'.html_safe
- text v
+ a.flash_close '×'.html_safe
+ span text v
}
end
end
end