Personally I think observers generally form part of your overall domain model - I don't think its sensible to restrict your model to ActiveRecord objects; thats just not realistic. The model dir should be for all components of your domain model.
Mailers on the other hand, I feel are part of the infrastructure layer and I've always felt it a bit strange to stick them in the models directory, so +1 for a dedicated mailers directory. Cheers Luke On 29 Aug 2006, at 07:13, Caio Chassot wrote: > > > On 2006-08-29, at 02:24 , Jonathan Viney wrote: > >> You could equally argue that observers should have their own >> directory as well. >> > > Indeed, so that's mailers, observers, sweepers. > > Everyone uses controllers and models, but not necessarily the items > above. So I suggest that these directories should not exist in the > default app, but be created by their respective generators if > necessary. > > I'm not sure how that affects rails's load path. Is it a problem to > add inexistent dirs? I suspect not. > > On a sidenote, there's no generator for sweepers. I guess a note > could be added to the docs if we do come to the conclusion that > separate dirs for each thing is the best way to go. > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-core -~----------~----~----~----~------~----~------~--~---
