Question on Model v Observer

I’ll throw this out to people and get your opinions.

Should callbacks when used in the model be used for manipulating that
model only and use observers to do external model manipulation or are
the callbacks within the model acceptable for external model

I’ve got a rather complex model of the electricity distribution system
and I need to update “upstream” data (cached information effectively)
on changes downstream.


Unless it breaks something I typically just make it a one-liner, to
make the ‘real’ code less intense.

On Tue, Apr 29, 2008 at 11:04 PM, jufemaiz: joel courtney

I like this blog post:


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs