Sha256: ab0b8805302d1e7f0213353435756dacbadd634882325005d98ec91ed1b2739c
Contents?: true
Size: 459 Bytes
Versions: 5
Compression:
Stored size: 459 Bytes
Contents
module Aureus module Components class Messages < Renderable def initialize flash @flash = flash end def render content_tag 'div', class: 'aureus-messages' do out = Array.new [:notice,:error,:alert].each do |i| if @flash[i] out << content_tag('p', @flash[i], class: i.to_s) end end compact *out end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems