Sha256: 39317e547769d987e45f6fba833d4b7c74c70a60b0eca891269666bb61d20b1e
Contents?: true
Size: 326 Bytes
Versions: 1
Compression:
Stored size: 326 Bytes
Contents
module Dvl::Flashes::Views class Flashes < Erector::Widget 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 } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dvl-flashes-0.0.1 | lib/dvl/flashes/views/flashes.rb |