Sha256: 6361156a599c86610672eb310e793d88962be8ef4d8d2e54f8b669ef2df1534e
Contents?: true
Size: 321 Bytes
Versions: 1
Compression:
Stored size: 321 Bytes
Contents
module WoodlockHelper def display_woodlock_flash_messages html = '' flash.each do |key, msg| case key when 'notice' html += content_tag :div, msg, class: "alert alert-info" else html += content_tag :div, msg, class: "alert alert-warning" end end html end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
woodlock-0.0.1 | app/helpers/woodlock_helper.rb |