rack-flash icon indicating copy to clipboard operation
rack-flash copied to clipboard

Can't check for empty flash

Open phrozen opened this issue 12 years ago • 2 comments

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?

phrozen avatar Oct 18 '12 00:10 phrozen

Bump. Let's find the solution.

fwolfst avatar Sep 17 '15 16:09 fwolfst

The only option I see upon superquick inspection is to use flash.has?(:error).

fwolfst avatar Sep 17 '15 16:09 fwolfst