allow usage with rails4