app/models/concerns/locations/digital_address.rb
# Generate some labels, for now lets call them digital addresses
# We can definitely improve on this part going forward.
Generate some labels, for now lets call them digital addresses
We can definitely improve on this part going forward.
Generate some labels for now lets call them digital addresses We can definitely improve on this part going forward .
def generate_digital_address
      self.level_1_code = region_code(region)
      self.level_2_code = city_code(city)
      self.level_3_code = locality_name
      self.digital_address = [level_1_code, level_2_code, level_3_code].reject(&:blank?).join('-')
    end
def generate_digital_address self . level_1_code = region_code ( region ) self . level_2_code = city_code ( city ) self . level_3_code = locality_name self . digital_address = [ level_1_code , level_2_code , level_3_code ] . reject ( & :blank? ) . join ( '-' ) end
Generate some labels, for now lets call them digital addresses
We can definitely improve on this part going forward.
Generate some labels for now lets call them digital addresses We can definitely improve on this part going forward .