Sha256: 136c26a4cb521bfdc1cb64ccd69e0a88c1189dbcf66178e03436c4076dc1c956

Contents?: true

Size: 321 Bytes

Versions: 2

Compression:

Stored size: 321 Bytes

Contents

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
humane-rails-2.8.0.0.1.1 app/helpers/humane_flash_messages_helper.rb
humane-rails-2.7.1.0.1.1 app/helpers/humane_flash_messages_helper.rb