app/models/barcode.rb
# Generate a {#code} for this barcode, if one does not already exist.
#
# @todo
#   REVIEW: Should this be done differently?
Generate a {#code} for this barcode, if one does not already exist.
Generate a { #code } for this barcode if one does not already exist .
def generate_code
    return if code.present?
    generate_code!
  end
def generate_code return if code . present? generate_code! end
Generate a {#code} for this barcode, if one does not already exist.
Generate a { #code } for this barcode if one does not already exist .
todo
None