Update visitor.rb

fix required for tests to pass on mds rails 4 upgrade
Merge pull request #1 from apita1973/patch-1

Update visitor.rb