1. fix changes for rails 3.2.8