> I would question the wisdom of doing that - it may work in the short > term, but you may find it breaks other stuff.
Thanks for the reply - I've just discovered default_scope, which is exactly what I want. Now I just have to figure out how to do the inner join in rails. > In this case though I'm not sure why you wouldn't just do > some_user.account.companies; you'd get back the same result set. I have that association set up and it works fine. However, all the data in my app is associated to the current user/account. I want to set up the scope in one place and not have to worry about it every time i do a 'find' -- 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 -~----------~----~----~----~------~----~------~--~---

