Skip to content

Fix required on belongs_to for rails 7.1+#1861

Open
fa11enangel wants to merge 1 commit intoheartcombo:mainfrom
fa11enangel:required-relationships-from-rails71
Open

Fix required on belongs_to for rails 7.1+#1861
fa11enangel wants to merge 1 commit intoheartcombo:mainfrom
fa11enangel:required-relationships-from-rails71

Conversation

@fa11enangel
Copy link

@fa11enangel fa11enangel commented Feb 7, 2026

close #1848

I've added the missing test cases based on ValidatingUser model and fixed them in validators.rb. I'm not sure I got all the cases, but this one is working for my projects.

@fa11enangel fa11enangel force-pushed the required-relationships-from-rails71 branch from d3868c7 to 2212912 Compare February 18, 2026 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

belongs_to relationships do not show up as required on rails 7.1+

1 participant