You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading to Virtus 1.0 which depends on Coercible 0.2.0, we noticed that a bunch of our attributes are now failing due to the stricter coercion rule. For example, a Date field can no longer accept "" (an empty string) because it cannot be coerced. This is especially troublesome in a rails project where attributes can be optional (so they get submitted as empty strings).
Could we make raising UnsupportedCoercion configurable?
For now I have to monkey patch raise_unsupported_coercion to return value directly to get back 0.1.0's behaviour.
Thanks!
The text was updated successfully, but these errors were encountered:
After upgrading to Virtus 1.0 which depends on Coercible 0.2.0, we noticed that a bunch of our attributes are now failing due to the stricter coercion rule. For example, a
Date
field can no longer accept""
(an empty string) because it cannot be coerced. This is especially troublesome in a rails project where attributes can be optional (so they get submitted as empty strings).Could we make raising
UnsupportedCoercion
configurable?For now I have to monkey patch
raise_unsupported_coercion
to returnvalue
directly to get back 0.1.0's behaviour.Thanks!
The text was updated successfully, but these errors were encountered: