Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't check for empty flash #10

Open
phrozen opened this issue Oct 18, 2012 · 2 comments
Open

Can't check for empty flash #10

phrozen opened this issue Oct 18, 2012 · 2 comments

Comments

@phrozen
Copy link

phrozen commented Oct 18, 2012

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?

@fwolfst
Copy link

fwolfst commented Sep 17, 2015

Bump. Let's find the solution.

@fwolfst
Copy link

fwolfst commented Sep 17, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants