app/models/concerns/common_utils.rb
# For some unknown reason I feel the first letter and last two letters will make sense
# Example Kumasi will be better looking like KSI than KUM so lets get this over with
For some unknown reason I feel the first letter and last two letters will make sense
Example Kumasi will be better looking like KSI than KUM so lets get this over with
For some unknown reason I feel the first letter and last two letters will make sense Example Kumasi will be better looking like KSI than KUM so lets get this over with
def city_code(name)
    return nil unless name
    name_array = name.downcase.strip.split
    if name_array.size > 1
      convert_name(name_array.join(" "), 2)
    else
      name = name_array[0]
      "#{name[0..1]}#{name[-2..-1]}".upcase
    end
  end
def city_code ( name ) return nil unless name name_array = name . downcase . strip . split if name_array . size > 1 convert_name ( name_array . join ( " " ) , 2 ) else name = name_array [ 0 ] "#{name[0..1]}#{name[-2..-1]}" . upcase end end
For some unknown reason I feel the first letter and last two letters will make sense
Example Kumasi will be better looking like KSI than KUM so lets get this over with
For some unknown reason I feel the first letter and last two letters will make sense Example Kumasi will be better looking like KSI than KUM so lets get this over with
name
<not_specific>