class Dvl::Flashes::Views::Flashes

Public Instance Methods

content() click to toggle source
# File lib/dvl/flashes/views/flashes.rb, line 6
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.flash_close '×'.html_safe
      span text v
    }
  end
end