Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improving HTML rendering error tolerance
From [CircleCI build 17168][1] for [PR #4326][2], we encountered an error in which we attempted to `+` together `nil` and a String object. This commit will prevent an application exception when we encounter that behavior. Below is log entry regarding the error. ```log ActionView::Template::Error: undefined method `+' for nil:NilClass # ./app/views/hyrax/homepage/_recent_document.html.erb:7 ``` **Is this appropriate?** I don't know. It looks as though we might want to treat this as in error. But, given some of the challenges we've had with our feature specs, I think I'd prefer that this erratic error not break the build. (Note: When this build broke, Ruby 2.4.7 and 2.6.2 builds of the same code worked) [1]:https://circleci.com/gh/samvera/hyrax/17168#tests/containers/5 [2]:#4236
- Loading branch information