On Oct 22, 2008, at 4:32 PM, Pat Maddox wrote:
I think any app with a rich domain model benefits from a service layer
that uses that model. When building Rails apps, stuff is relatively
simple and the controllers *are* the service layer. That's how I
think
of it, anyway. Most of the time that's sufficient, but sometimes it
gets complex enough that you want to split out some of the logic.
Reflecting on this thread, I'm realizing I put a lot of these kind of
things into application.rb. Maybe I should think about how to make
them into objects in a service layer, but presently they're doing
fine where they are: split out from the controller, and independently
testable. hmm...
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users