rack-flash
rack-flash copied to clipboard
Can't check for empty flash
I've been looking for a simple way to check if the flash is empty, but it does not provide any simple array/hash methods for that.
Maybe adding an empty? method to the class that returns true on empty values.
Any ideas on how to do that right now?
Bump. Let's find the solution.
The only option I see upon superquick inspection is to use flash.has?(:error)
.