I think the problem lies in the ability for the DB to perform a join 
across multiple tables which in fact breaks encapsulation!

Maybe I should break down my DB query that uses joins into smaller 
queries. The code is obviously less efficient, but it's more 
maintainable, as each model is only concerned with its own stuff, and 
therefore I don't have to make edits across various models just because 
I changed the name or type of attributes in a single model.

Using joins across multiple models doesn't feel right anymore.
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
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 [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-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to