Sha256: a3145dc951eb11387f99180f3179195fcfa5886a1f4a54d6ad4586736e735d46

Contents?: true

Size: 433 Bytes

Versions: 1

Compression:

Stored size: 433 Bytes

Contents

module HumaneFlashMessagesHelper
  def humane_flash_messages
    content = ""
    unless flash[:notice].blank?
      content << javascript_tag("humane.notice(\"#{flash[:notice]}\")")
    end
    unless flash[:error].blank?
      content << javascript_tag("humane.error(\"#{flash[:error]}\")")
    end
    unless flash[:alert].blank?
      content << javascript_tag("humane.alert(\"#{flash[:alert]}\")")
    end
    content
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
humane-rails-3.0.5.0.1.5 app/helpers/humane_flash_messages_helper.rb