def display_flash_messages(closable: true, key_matching: {})
      key_matching = DEFAULT_KEY_MATCHING.merge(key_matching)
      key_matching.default = :primary

      capture do
        flash.each do |key, value|
          next if ignored_key?(key.to_sym)

          alert_class = key_matching[key.to_sym]
          concat alert_box(value, alert_class, closable)
        end
      end
    end
def display_flash_messages(closable: true, key_matching: {})
      key_matching = DEFAULT_KEY_MATCHING.merge(key_matching)
      key_matching.default = :primary

      capture do
        flash.each do |key, value|
          next if ignored_key?(key.to_sym)

          alert_class = key_matching[key.to_sym]
          concat alert_box(value, alert_class, closable)
        end
      end
    end
def display_flash_messages ( closable : true , key_matching : { } ) key_matching = DEFAULT_KEY_MATCHING . merge ( key_matching ) key_matching . default = :primary capture do flash . each do | key , value | next if ignored_key? ( key . to_sym ) alert_class = key_matching [ key . to_sym ] concat alert_box ( value , alert_class , closable ) end end end
Displays the flash messages found in ActionDispatch's +flash+ hash using
 Foundation's +callout+ component.

 Parameters:
 * +closable+ - A boolean to determine whether the displayed flash messages
 should be closable by the user. Defaults to true.
 * +key_matching+ - A Hash of key/value pairs mapping flash keys to the
 corresponding class to use for the callout box.
Displays the flash messages found in ActionDispatch s + flash + hash using Foundation s + callout + component .