Update how flash messages are handled for Rails 4.1