Closed larouxn closed 1 month ago
🎩 Just updated local ActiveJob RBI annotations file manually and indeed this appears to fix the discrepancy behavior between splatting discard_on
and rescue_on
+ retry_on
when using a frozen array of strings. Before discard_on
needed T.unsafe
and with this change it appears it no longer does. 🙌
Thanks @larouxn!
Type of Change
Changes
activejob
I'm trying to bring
discard_on
in-line withrescue_on
andretry_on
considering according to the Rails documentation they're all the same.Additionally, would seemingly allow
discard_on
usage to avoid needingT.unsafe
with the latest Sorbet provided the array of strings is frozen viafreeze
re: the following change.