Commit f0fdbd8
lambda(&:nil?) in specs is replaced with explicit lambdas
Rails 7.0 evaluates :if/:unless callback conditions via
instance_exec, which doesn't pass the instance as an argument
to Symbol#to_proc lambdas, causing "no receiver given" errors.1 parent 7724d97 commit f0fdbd8
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
236 | | - | |
| 236 | + | |
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
| |||
315 | 315 | | |
316 | 316 | | |
317 | 317 | | |
318 | | - | |
| 318 | + | |
319 | 319 | | |
320 | 320 | | |
321 | 321 | | |
| |||
0 commit comments