Fix rails4 model_name compatibility issue