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

Rails default validations not catched #87

Open
donmb1 opened this issue Nov 19, 2021 · 1 comment
Open

Rails default validations not catched #87

donmb1 opened this issue Nov 19, 2021 · 1 comment

Comments

@donmb1
Copy link

donmb1 commented Nov 19, 2021

class Customer < ApplicationRecord
   belongs_to :organization
end

by default Rails validates this association as required, meaning if you do net set an organization_id, record creation will fail
Rails default validations should be catched by default

@apotonick
Copy link
Owner

This should be in https://github.com/trailblazer/reform-rails as we're discussing Rails-specific validations.

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

No branches or pull requests

2 participants