Allow rails 3.1.12