Lock to rails 3.1