Change rails4 to rails plugin