Combining multiple models into 1 file

Hi, all, I thinking to combine the multiple models into 1 file, so
that model in sub-system can be in a single file, which will help to
ease maintenance.

Does anyone knows how to do it, and if it is recommented to do so?

paul wrote:

Hi, all, I thinking to combine the multiple models into 1 file, so
that model in sub-system can be in a single file, which will help to
ease maintenance.

Does anyone knows how to do it, and if it is recommented to do so?

One problem you I think you will have is that the magic ‘require’ stuff
in rails assumes that the model Foo can be found in foo.rb, which
doesn’t sound like it would work if you have more than one model in a
single file.

Fred