We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Parameters should be able to support these declaratively.
I'm thinking along these lines:
params do requires :name, :string, only: ~w(john mary) requires :profession, :string, except: ~w(student engineer) requires :email, :string, matches: ~r/.+@.+/ end
The best place to introduce this is during the schema definition step.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Parameters should be able to support these declaratively.
I'm thinking along these lines:
The best place to introduce this is during the schema definition step.
The text was updated successfully, but these errors were encountered: