kostyantyn / hydra_attribute

Implementation of EAV pattern for ActiveRecord models

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Attribute validations

damianfarina opened this issue · comments

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