I thought this was the case but on trying it recently it didn’t work (I also searched for an answer here and Google but didn’t find anything concrete, so hopefully this might help someone in future).
It’s been a while since I read about plugins but from memory does it go something like this?
rails g plugin NAME
- locate the file you want to change
- change it first to test it does what you need, if it does…
- copy it into the same directory in your plugin
- make your changes and the changes should take effect