Only set custom_octopus_connection in Rails 3.2

Older versions of Rails can use deprecated octopus_establish_connection
method.