Sha256: 0cc64ea360e3aa0f2d3344ebe455f2ac8d7b3b7aee7ce33fae1dda4232606f62
Contents?: true
Size: 273 Bytes
Versions: 8
Compression:
Stored size: 273 Bytes
Contents
module EmailStorageHelper def view_flash_messages flash.each do |type, msgs| if msgs.is_a? String msgs = [msgs] end msgs.each do |msg| return content_tag(:p, msg, class: "flash #{type}") unless msg.empty? end end end end
Version data entries
8 entries across 8 versions & 1 rubygems