New filter for hashes where the key is an ID of some kind with an attached value #535
AaronLasseigne
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
Maybe |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In #459 and #531 we see a case that isn't easily handled within ActiveInteraction. It's the situation where a has is used not as a group of information but as a lookup where the key is some unique ID and the values are... whatever.
I think I'm going to add a new filter called
lookup
to handle this. It would work by accepting any key and then validating the value if a block is given. It would be the same way the array filter works.Then you could pass a hash with a matching format:
Questions:
Beta Was this translation helpful? Give feedback.
All reactions