Ability to require a record #372
JamesChevalier
started this conversation in
Ideas
Replies: 2 comments 4 replies
-
That's correct. I think we may add an exception for |
Beta Was this translation helpful? Give feedback.
4 replies
-
I think the docs could more explicitly point out that |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We can
require_params :param_name
butrequire_params :record
isn't functional - even if you set thatrecord
value it still produces the validation errorI think this is because the
params
are being adjusted here, removing thatrecord
entry from the overallparams
hash:noticed/app/models/concerns/noticed/deliverable.rb
Lines 48 to 51 in f8e0f8c
So by the time the required params check runs, the record has been taken out & the validation will fail.
Beta Was this translation helpful? Give feedback.
All reactions