ministryofjustice / govuk_elements_form_builder

Form builder helper methods to develop GOV.UK elements styled applications in Ruby on Rails
https://govuk-elements-rails-guide.herokuapp.com/
MIT License
6 stars 14 forks source link

Unable to print Error Summary for self-referencing object graphs #76

Closed stephenrichards closed 7 years ago

stephenrichards commented 7 years ago

If you have an object, say Case, which has an attribute, say state machine, which has an attribute which refers to the Case, the error handler goes into an endless loop or stack trace too deep.

Branch PSR has a test that proves this point.