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
feat: allow advisory_lock_name proc to receive instance for per-tenant lock granularity (#491)
When advisory_lock_name is a 2-arity proc, it receives (base_class, instance)
so callers can derive per-instance lock names (e.g. by tenant/scope column).
1-arity procs continue to receive only base_class - fully backward compatible.
Instance-method call sites pass self; class-method sites pass nil, falling
back to the model-wide lock name as before.
Co-authored-by: Masanori OKAZAKI <masanori-okazaki@freee.co.jp>
0 commit comments