Sha256: 0924016d3582618c393bd74bbc34236434e4a1ef87c2237ae299d80d8f016507
Contents?: true
Size: 494 Bytes
Versions: 2
Compression:
Stored size: 494 Bytes
Contents
module HumaneFlashMessagesHelper def humane_flash_messages content = "" unless flash[:notice].blank? content << javascript_tag("humane.notice(\"#{escape_javascript(flash[:notice])}\")") end unless flash[:error].blank? content << javascript_tag("humane.error(\"#{escape_javascript(flash[:error])}\")") end unless flash[:alert].blank? content << javascript_tag("humane.alert(\"#{escape_javascript(flash[:alert])}\")") end content end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
humane-rails-4.0.0 | app/helpers/humane_flash_messages_helper.rb |
humane-rails-3.1.0 | app/helpers/humane_flash_messages_helper.rb |