Allow rails 3