plataformatec/devise — comment on commit 275c480f89f814af7135093a507ab57397729faf
File: lib/devise/failure_app.rb line 80
By josevalim:

Yes, it is needed. Flash is not only used for storing messages, you should probably check if something is a string or responds to to_str before printing it.