change version to pre and support rails4