Fix flash messages for Rails 4.1