Commit 78a2243
committed
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 a66fb96 commit 78a2243
1 file changed
+2
-2
lines changed| 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