Is there an efficient or a shorter way to achieve the same result as below?
params[:random] = split_array(params[:random])
I want to pass a variable as parameter to a rails method and store the result in the same variable and use it further?
For example, I was thinking something similar to
variable = variable + 1
can be efficiently written as
variable++