Closed omkarmoghe closed 1 year ago
That's an interesting edge case. I think you're right that the docs should mention it. I also think it should throw a more informative error message than that.
@AaronLasseigne Is either the doc update or better error message something you'd consider a PR for? Or is this something you'd prefer to handle yourself?
I'd take a PR for either or both.
This is fixed in the 5.3.0 release.
Small request for additional documentation for the
hash
filter, specifically around nested options.It seems like if you want to provide a nested option to a
hash
filter with a default proc, you need to set thedefault
of the hash itself to also be a lambda, otherwise you get an error when attempting to define the filters.Error
Results in some
NameError
:NameError: undefined local variable or method `other_input' for nil:NilClass
Correct(?)
This seems to work as expected.
I don't think this is necessarily a bug, but isn't immediately apparent, so hoping for some documentation around this usage if possible. Happy to open a PR to add to docs as well, if this is accepted.