Update visitor.rb

fix required for tests to pass on mds rails 4 upgrade