Skip to content

Commit

Permalink
Merge pull request #731 from shved270189/patch-1
Browse files Browse the repository at this point in the history
Fixed for Rails 4.1 and Ruby 2.1
  • Loading branch information
seyhunak committed Apr 27, 2014
2 parents 663760e + a804e70 commit 95de3b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/helpers/bootstrap_flash_helper.rb
Expand Up @@ -8,8 +8,8 @@ def bootstrap_flash
next if message.blank?

type = type.to_sym
type = :success if type == :notice
type = :error if type == :alert
type = :success if type.to_s == :notice.to_s
type = :error if type.to_s == :alert.to_s
next unless ALERT_TYPES.include?(type)

Array(message).each do |msg|
Expand Down

0 comments on commit 95de3b0

Please sign in to comment.