(#6771) Check for ActiveRecord::Base instead of Puppet.features.rails?
Without this patch there are false positive failures in situations where
a test case stubs Puppet.features.rails?. This is the case in
spec/integration/defaults_spec.rb.
This patch fixes the problem by only calling the remove_connection
method if ActiveRecord::Base is defined.
Reviewed-by: Daniel Pittman