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

Cache.all(nil, return: :value) did not correctly handle values that are lists. #229

Merged
merged 1 commit into from
Aug 5, 2024

Conversation

jweinkam
Copy link
Contributor

@jweinkam jweinkam commented Aug 4, 2024

Bugfix for issue #228.

Instead of List.flatten, which will flatten out the lists within the values as well, use Enum.flat_map so only the first level gets flattened and not all the values as well.

@coveralls
Copy link

Coverage Status

coverage: 100.0%. remained the same
when pulling 19194c2 on jweinkam:master
into 2b15912 on cabol:master.

@cabol cabol merged commit 21c4e60 into cabol:master Aug 5, 2024
7 checks passed
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

Successfully merging this pull request may close these issues.

3 participants