Allow rails 4.1 to be used