fix deprecation in rails 3.2 about explicit handler