Commit b45b17d
committed
fix: use @model.bucket instead of CouchbaseOrm::Connection.bucket in delete_all
`delete_all` was the only method in `CouchbaseOrm_Relation` still using
the global `CouchbaseOrm::Connection.bucket`. All other storage accesses
(`to_n1ql`, `update_all`, `execute`, `first`, `last`) correctly use
`@model.bucket` or `@model.cluster`.
This inconsistency was a historical oversight: `delete_all` was
introduced in the first commit of the relation class before
`@model.bucket` existed, and was never updated when the abstraction
was added in later commits.
This fix makes `delete_all` consistent with the rest of the class and
enables per-model dynamic connection routing (e.g. Couchbase Capella).1 parent 55c5422 commit b45b17d
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| |||
0 commit comments