Steven Talcott Smith
2006-Jul-23 17:10 UTC
[Rails] Refactoring or renaming things in Rails
Something nice would be a script/rename or script/refactor which would allow for easy renaming of some model/view/controller or combination, including a db migration if necessary. One does not always start out with a complete understanding of the domain or with the greatest Rails purity and often it is desirable to go back and rename something. Maybe it does not even count as refactoring. I loved how IDEA handled all that stuff like magic back in the day. Change a class name in one place, and it would change everywhere it is used and rename files as necessary. I think this could be done in a script/ -- at least for major renames -- so that everyone could benefit, not just those using a particular editor. Is anyone else thinking along these lines? Is this something worth working on? Steven -- Posted via http://www.ruby-forum.com/.
Possibly Parallel Threads
- [LLVMdev] [cfe-dev] RFC: A Great Renaming of Things (or: Let's Repaint ALL the Bikesheds!)
- [virtio-dev] Re: net_failover slave udev renaming (was Re: [RFC PATCH net-next v6 4/4] netvsc: refactor notifier/event handling code to use the bypass framework)
- [virtio-dev] Re: net_failover slave udev renaming (was Re: [RFC PATCH net-next v6 4/4] netvsc: refactor notifier/event handling code to use the bypass framework)
- [virtio-dev] Re: net_failover slave udev renaming (was Re: [RFC PATCH net-next v6 4/4] netvsc: refactor notifier/event handling code to use the bypass framework)
- [virtio-dev] Re: net_failover slave udev renaming (was Re: [RFC PATCH net-next v6 4/4] netvsc: refactor notifier/event handling code to use the bypass framework)