Roda 3.69.0 Released #325
jeremyevans
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Roda 3.69.0 has been released!
New Feature
The symbol_matcher method in the symbol_matchers plugin now
supports a block to allow for type conversion of matched
segments:
As shown above, the block should return an array of objects to yield
to the match block.
If you have a segment match the passed regexp, but decide during block
processing that you do not want to treat it as a match, you can have the
block return nil or false. This is useful if you want to make sure you
are using valid data:
When providing a block when using the symbol_matchers method, that
symbol may not work with the params_capturing plugin.
Thanks,
Jeremy
Beta Was this translation helpful? Give feedback.
All reactions