Fix dependancy to beta rails 4