On 8/29/06, Luke Redpath <[EMAIL PROTECTED]> wrote:
>
> 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.

Agreed; your domain model doesn't necessarily have anything to do with
AR.  However, observers are there to support your domain model, so
they belong in the same place...

> 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.

This has always concerned me, too, and anyone whom I've taught to use
Rails has wondered about the placement of mailers in the models
directory.  They're not really part of the domain model, like Luke
mentioned, and I think merit their own directory.  +1

Dave

-- 
Dave Goodlad
[EMAIL PROTECTED] or [EMAIL PROTECTED]
http://david.goodlad.ca/

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to