Sha256: d6dafc9676edc7183e4f9fdf352506e415dfb8a48a21c5c6202e7ce67f266f10
Contents?: true
Size: 544 Bytes
Versions: 3
Compression:
Stored size: 544 Bytes
Contents
module HumaneRails module FlashMessagesHelper 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 end
Version data entries
3 entries across 3 versions & 1 rubygems