You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
...it might well be the case that all of the unsafe variants (where it's relevant) should use the safe lock acquisition. I think that's mostly a project policy discussion, since it means the unsafe variants are increasingly not just proxies for the original Rails method (though we've already gone down that path somewhat with the dependent object checks).
ISTM that what we might want here is to move from 2 layers (safe_* and unsafe_*) to 3 layers: safe_*, unsafe_* to prevent clear database level issues (e.g., provide safe locking), and insert a new layer (maybe raw_*?) to be a pure dispatch into the original ActiveRecord implementation.
The text was updated successfully, but these errors were encountered:
From discussion in #22:
ISTM that what we might want here is to move from 2 layers (
safe_*
andunsafe_*
) to 3 layers:safe_*
,unsafe_*
to prevent clear database level issues (e.g., provide safe locking), and insert a new layer (mayberaw_*
?) to be a pure dispatch into the original ActiveRecord implementation.The text was updated successfully, but these errors were encountered: