Commit dc581fb
Drop
`(TestEmployee.partial_updates = false) rescue nil` was a defensive
guard for an ActiveRecord API that may not have existed on every
supported Rails version when the line was written.
`ActiveRecord::Base.partial_updates=` is stable in Rails 8 and is
present on the supported Rails range, so the guard hides nothing
useful — and a future API rename would be better surfaced as a
NoMethodError than silently swallowed.
Drop the guard so the assignment runs unconditionally; if the API
ever goes away the spec will fail loudly instead of silently
no-opping.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>rescue nil guard for partial_updates =
1 parent 9068dfa commit dc581fb
1 file changed
Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
316 | 316 | | |
317 | 317 | | |
318 | 318 | | |
319 | | - | |
| 319 | + | |
320 | 320 | | |
321 | 321 | | |
322 | 322 | | |
| |||
0 commit comments