Allow to use with rails4