I have a model in my rails app that has an irregular pluralisation. I know that I can fix this by adding the appropriate code to config/initializers/inflections.rb.
The problem is I didn't realise it was incorrect until after I ran a bunch of other generators and wrote a lot of code.
Is there any easy way (perhaps a gem?) to batch rename all my files, models, controllers, schema (via a migration I guess), etc to use the correct inflection?
Aucun commentaire:
Enregistrer un commentaire