Skip to content

Commit

Permalink
add comment to the added method
Browse files Browse the repository at this point in the history
  • Loading branch information
wendyyang committed Oct 3, 2024
1 parent bf10f84 commit 7eb412f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/models/barcode/format_handlers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,9 @@ class Rvi < BaseRegExBarcode
self.format = /\A(?<prefix>RVI)-(?<number>[0-9]{6,})\z/
end

# add AkerBarcode class here as it could be called in
# Barcode::FormatHandlers.const_get in app/models/barcode.rb to avoid
# uninitialized constant Barcode::FormatHandlers::AkerBarcode (NameError)
class AkerBarcode < BaseRegExBarcode
self.format = /\A(?<prefix>Aker)-(?<number>[0-9]{2,})\z/
end
Expand Down

0 comments on commit 7eb412f

Please sign in to comment.