I wish to coerce the form input
"1,3,5"
into:
[1,3,5]
I am using dry-types
gem for other coercions and constraints. I need to know:
Is this possible via any built-in mechanism in rails or dry-types ?
If not, how do I define a custom coercion for it using dry-types ?
I'd consider two ways of solving this: