update for remove rails 3.2 warnings