This method is deprecated or moved on the latest stable version.
The last existing version (v6.0.0) is shown here.
split_order_string(string)
private
Split string by commas but count opening and closing brackets and ignore
commas inside brackets.
# File activerecord/lib/arel/visitors/oracle.rb, line 133
def split_order_string(string)
array = []
i = 0
string.split(",").each do |part|
if array[i]
array[i] << "," << part
else
# to ensure that array[i] will be String and not Arel::Nodes::SqlLiteral
array[i] = part.to_s
end
i += 1 if array[i].count("(") == array[i].count(")")
end
array
end