hydra_attribute
hydra_attribute copied to clipboard
Attribute validations
Hi Kostyantyn, did you ever thought about adding some kind of validations to an attribute?
Yes, I am planning to add them. Validations will be stored in hydra_attributes table like other meta-information and the API will be the following:
Product.hydra_attributes.create(name: '...', presence: true)
Great! Let me know if you need a hand, I'll be glad to help