app/helpers/bootstrap_flash_helper.rb in bootstrap-sass-extras-0.0.7 vs app/helpers/bootstrap_flash_helper.rb in bootstrap-sass-extras-0.1.0
- old
+ new
@@ -3,10 +3,10 @@
notice: :success,
alert: :danger,
error: :danger,
info: :info,
warning: :warning
- }
+ }.freeze
def bootstrap_flash
safe_join(flash.each_with_object([]) do |(type, message), messages|
next if message.blank? || !message.respond_to?(:to_str)
type = ALERT_TYPES_MAP.fetch(type.to_sym, type)