Skip to content
New issue

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

Attribute validations #1

Open
damianfarina opened this issue Oct 16, 2012 · 2 comments
Open

Attribute validations #1

damianfarina opened this issue Oct 16, 2012 · 2 comments
Assignees
Labels

Comments

@damianfarina
Copy link

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

@kostyantyn
Copy link
Owner

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) 

@damianfarina
Copy link
Author

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

@ghost ghost assigned kostyantyn Jan 15, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants