Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix error component without object on Rails main to display properly
Rails main changed `object` to be `false` instead of `nil`, causing the specific check we were doing for `object.nil?` to fail, and the custom errors were not displaying for forms without an object. Our test suite caught that, and the fix is to simply not check specifically for `nil?`, but just whether we have an object or not, which should account for both `nil`/`false` versions. It's a small backwards incompatibility, probably not something worth changing the framework for, but one worth mentioning. Source is likely to be: - rails/rails#49943 - rails/rails#50931
- Loading branch information