def camelize(string, lowercase = false)
      result = string
        .to_s
        .split("_")
        .map { |e| e.capitalize }
        .join

      if lowercase
        result[0, 1].downcase + result[1..-1]
      else
        result
      end
    end
def camelize(string, lowercase = false)
      result = string
        .to_s
        .split("_")
        .map { |e| e.capitalize }
        .join

      if lowercase
        result[0, 1].downcase + result[1..-1]
      else
        result
      end
    end
Convert an underscored string to it's camelcase equivalent constant.

 @param [String] string
   the string to convert

 @return [String]