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
At the moment, if you have a Virtus object acting as an Embedded Value, you can't do any kind of custom coercion. Or even invoke the constructor, unless you pass in a hash. For example:
It would be helpful if in the Character.new(:driving => 1) case, the one could still be cast to an Ability. Perhaps via a custom coercion method? I'm not immediately sure how the best way to go about this would be.
The text was updated successfully, but these errors were encountered:
At the moment, if you have a Virtus object acting as an Embedded Value, you can't do any kind of custom coercion. Or even invoke the constructor, unless you pass in a hash. For example:
It would be helpful if in the
Character.new(:driving => 1)
case, the one could still be cast to an Ability. Perhaps via a custom coercion method? I'm not immediately sure how the best way to go about this would be.The text was updated successfully, but these errors were encountered: