Update connection.rb

fix the params merge