implement visitor_for for rails 3.1