hydra_attribute icon indicating copy to clipboard operation
hydra_attribute copied to clipboard

Attribute validations

Open damianfarina opened this issue 13 years ago • 2 comments

Hi Kostyantyn, did you ever thought about adding some kind of validations to an attribute?

damianfarina avatar Oct 16 '12 19:10 damianfarina

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) 

kostyantyn avatar Oct 19 '12 18:10 kostyantyn

Great! Let me know if you need a hand, I'll be glad to help

damianfarina avatar Oct 23 '12 20:10 damianfarina