Sha256: 0cc64ea360e3aa0f2d3344ebe455f2ac8d7b3b7aee7ce33fae1dda4232606f62

Contents?: true

Size: 273 Bytes

Versions: 8

Compression:

Stored size: 273 Bytes

Contents

module EmailStorageHelper
  def view_flash_messages
    flash.each do |type, msgs|
      if msgs.is_a? String
        msgs = [msgs]
      end

      msgs.each do |msg|
        return content_tag(:p, msg, class: "flash #{type}") unless msg.empty?
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
under_construction-0.2.2 app/helpers/email_storage_helper.rb
under_construction-0.2.1 app/helpers/email_storage_helper.rb
under_construction-0.1.4 app/helpers/email_storage_helper.rb
under_construction-0.1.3 app/helpers/email_storage_helper.rb
under_construction-0.1.2 app/helpers/email_storage_helper.rb
under_construction-0.1.1 app/helpers/email_storage_helper.rb
under_construction-0.1.0 app/helpers/email_storage_helper.rb
under_construction-0.0.1 app/helpers/email_storage_helper.rb