Workaround for rails4