Lock to 4.0.6 as 4.0.7 is rails 4+