[Rails] Re: Class loading in development mode best practice / recommendation

2010-07-08 Thread Frederick Cheung
On Jul 7, 3:52 pm, Joe wrote: > Thanks for the suggestion, Fred.  That makes sense, and I would solve > the problem in this case. > > Long term, I'm thinking of moving the framework out of the project and > into a gem.  At that point, of course, it would be unrealistic to > include the require_

[Rails] Re: Class loading in development mode best practice / recommendation

2010-07-07 Thread Joe
On Jul 7, 3:25 am, Frederick Cheung wrote: > > I usually stick a bunch of require_dependency calls at the bottom of > the file containing the base class that loads the various subclasses > > Fred Thanks for the suggestion, Fred. That makes sense, and I would solve the problem in this case. Lo

[Rails] Re: Class loading in development mode best practice / recommendation

2010-07-07 Thread Frederick Cheung
On Jul 6, 7:27 pm, Joe wrote: > In my project, I have a user model.  The user model can be assigned > chores.  Chores have an associated class object (that go by the name > 'Service').  In the admin interface for users, the administrator can > assign these Chores to a user, and when they do this