Interestingly, I found this question on Stack Overflow which got a response 
from Bob himself.

http://stackoverflow.com/questions/1968569/do-we-use-rails-activerecord-as-a-hybrid-structure-i-e-data-structureobject
  


On Sunday, 11 September 2011 at 18:35, Stuart Liston wrote:

>  Hi again guys  
>  
> Since I know you like to get philosophical, I thought I'd throw out another 
> question, one that's been bothering me a little. The answer may be obvious to 
> everyone except me.
>  
> What do y'all think about having business logic in ActiveRecord model classes?
>  
> I often see a bunch of methods in ActiveRecord classes, but that seems to be 
> contradictory to the advice in Uncle Bob's Data Structures vs Objects chapter 
> in Clean Code.
>  
> It would be interesting to learn where everyone sits on this one…
>  
> Do you mix it up together? Do you always write your business objects as a 
> layer of abstraction to provide something of an api for your AR model 
> classes? Does it depend on the size of the app?
>  
> Cheers,
> Stu
>  
>  


-- 
You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" 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/rails-oceania?hl=en.

Reply via email to