rails 4 support, replace .proxy