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

Use ActiveModel::Validations on components #153

Open
nicolas-brousse opened this issue Nov 20, 2019 · 4 comments
Open

Use ActiveModel::Validations on components #153

nicolas-brousse opened this issue Nov 20, 2019 · 4 comments

Comments

@nicolas-brousse
Copy link
Member

I think it could be nice to be able to use ActiveModel::Validations on a component.

@nicolas-brousse
Copy link
Member Author

Since a component is a module like an helper. I think we can't do this for now.

Component should be a class to be able to do this.

@dlupu
Copy link

dlupu commented Dec 19, 2019

I totally agree, this would be great.

@nicolas-brousse
Copy link
Member Author

Since this implies using classes instead of modules. It's something that should only appear in a major realease, with broken changes I guess.

@0xStarcat
Copy link

0xStarcat commented Jan 15, 2020

Having any sort of way to custom validate a property would be great - not saying you need a whole system like React's PropTypes, but at least a simple way to pass and execute a :validator option on definition perhaps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants