Question

Hey so I realize this probably isn't good practice, but I was wondering if it's technically possible to combine the code from my various rails model files into one .rb file?

I have a lot of very short models, and when making changes to them it'd be quite helpful to be able to see them all in one place instead of having to open up numerous windows.

Was it helpful?

Solution

This goes against the rails philosophy of Convention over Configuration.

Ruby is a highly flexible language, so yes it would be possible to do that, but you would have to undo much of the auto-configuration that makes up the entire reason for using rails.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top