Wednesday, August 24, 2011

Re: [Rails] Re: call a controller method from model

On Wed, Aug 24, 2011 at 11:20 AM, Angelo Cordova <acordinz@gmail.com> wrote:

> Everytime I update Model B, I have to update Model A, but this update
> depends on "which" model has updated Model B. if Model C has updated
> Model B I have to make some changes in Model A. But if Model D has
> updated Model B I have to make differnts changes in Model A.

One Adam 12, code 7, Law of Demeter violation in progress :-)

<http://en.wikipedia.org/wiki/Law_of_Demeter>

You might want to rethink these models. Just sayin' ...

--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate