before rails4