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

to_array will not return a boolean "false" response #327

Closed
BooVeMan opened this issue Oct 29, 2012 · 1 comment
Closed

to_array will not return a boolean "false" response #327

BooVeMan opened this issue Oct 29, 2012 · 1 comment
Milestone

Comments

@BooVeMan
Copy link

Given the following:
[{:return=>{:success=>false, :error_messages=>nil, :success_messages=>nil}}]
a call
.to_array(:return, :success)
will return an empty array ([]) and not an array containing false ([false]) so the evaluated result ist nil and not false.

@BooVeMan
Copy link
Author

response.rb:76 should read:
return [] if memo[key].nil?

@rubiii rubiii closed this as completed in a165461 Nov 9, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants