-
Notifications
You must be signed in to change notification settings - Fork 49
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
calling form.validate throws error stack level too deep #94
Comments
kmsheng
changed the title
calling form.errors produces error stack level too deep
calling form.validate produces error stack level too deep
Jul 7, 2022
kmsheng
changed the title
calling form.validate produces error stack level too deep
calling form.validate throws error stack level too deep
Jul 7, 2022
trace before validate $enable_tracing = false
$trace_out = open('trace.txt', 'w')
set_trace_func proc { |event, file, line, id, binding, classname|
if $enable_tracing && event == 'call'
$trace_out.puts "#{file}:#{line} #{classname}##{id}"
end
}
$enable_tracing = true
|
looks like https://github.com/trailblazer/reform-rails/blob/master/lib/reform/form/active_model/validations.rb#L172 would cause infinite loop |
def full_messages_for_nested_fields(form_fields)
form_fields
.to_a
.reject { |field| field[0] == "parent" }
.map { |field| full_messages_for_twin(field[1]) }
end |
#95 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This error occurs when using collection and Disposable::Twin::Parent together
For example
Any clues would be truly appreciated, thank you
The text was updated successfully, but these errors were encountered: