Skip to content
This repository
Browse code

Merge pull request #731 from shved270189/patch-1

Fixed for Rails 4.1 and Ruby 2.1
  • Loading branch information...
commit 95de3b0e288aede73d38a18cce30cde66e733558 2 parents 663760e + a804e70
Seyhun Akyürek authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 app/helpers/bootstrap_flash_helper.rb
4 app/helpers/bootstrap_flash_helper.rb
@@ -8,8 +8,8 @@ def bootstrap_flash
8 8 next if message.blank?
9 9
10 10 type = type.to_sym
11   - type = :success if type == :notice
12   - type = :error if type == :alert
  11 + type = :success if type.to_s == :notice.to_s
  12 + type = :error if type.to_s == :alert.to_s
13 13 next unless ALERT_TYPES.include?(type)
14 14
15 15 Array(message).each do |msg|

0 comments on commit 95de3b0

Please sign in to comment.
Something went wrong with that request. Please try again.