-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extend Vets::Model with value "coercion" functionality #19979
base: master
Are you sure you want to change the base?
Conversation
Generated by 🚫 Danger |
It looks like a lot but there's it's more repetition
Summary
Example:
cast
seems to be a better word thancoerce
, so I've stuck with thatVets::Attributes::Value
ActiveModel::Type
for the casting logicRelated issue(s)
Testing done
Acceptance criteria
readme.mdtypes.rb
as a commentRequested Feedback
For the Primitive, if the logic is flawed, I can switch to the standard casting (.to_s)