From 33ced4431f81ea4dfbc49068fe762ddf3fef8cd8 Mon Sep 17 00:00:00 2001 From: Stuart McHattie Date: Wed, 18 Dec 2024 09:48:09 +0000 Subject: [PATCH] Allow QcAbles to filter by UUID on API v2 --- app/resources/api/v2/qcable_resource.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/resources/api/v2/qcable_resource.rb b/app/resources/api/v2/qcable_resource.rb index 3ffc30d7b7..d21791fd91 100644 --- a/app/resources/api/v2/qcable_resource.rb +++ b/app/resources/api/v2/qcable_resource.rb @@ -31,6 +31,7 @@ class QcableResource < BaseResource # Filters filter :barcode, apply: ->(records, value, _options) { records.with_barcode(value) } + filter :uuid, apply: ->(records, value, _options) { records.with_uuid(value) } # Custom methods # These shouldn't be used for business logic, and are more about