Skip to content

Commit

Permalink
Allow QcAbles to filter by UUID on API v2
Browse files Browse the repository at this point in the history
  • Loading branch information
sdjmchattie committed Dec 18, 2024
1 parent 3d45f75 commit 33ced44
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/resources/api/v2/qcable_resource.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 33ced44

Please sign in to comment.