json_api_client
json_api_client copied to clipboard
Proposal to set a proc when defining default values
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.
PR would be appreciated
I'll hop to it as soon as I can, it shouldn't be too tricky