We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When using Virtus.model we are able to set default values for attributes using procs which are currently missing from the properties hash.
Example usage:
property :id, default -> { SecureRandom.uuid }
Just now I have a after_initialize set that accomplishes this in more lines of code.
The text was updated successfully, but these errors were encountered:
PR would be appreciated
Sorry, something went wrong.
I'll hop to it as soon as I can, it shouldn't be too tricky
No branches or pull requests
When using Virtus.model we are able to set default values for attributes using procs which are currently missing from the properties hash.
Example usage:
Just now I have a after_initialize set that accomplishes this in more lines of code.
The text was updated successfully, but these errors were encountered: