A short writeup on that topic is also here: http://neotrivium.com/blog/2007/4/4/outofthescopeofscopeout?language=en-US
The scope_out plugin is such a great extension to ActiveRecord I can’t imagine any non-trivial app not benefiting from it.
I have just two reservations: I would have thought it could be named better (OK that’s a niggle), and the customised with_scope methods it creates (e.g. with_active), should really be protected. Why? See this thread.
A short writeup on that topic is also here: http://neotrivium.com/blog/2007/4/4/outofthescopeofscopeout?language=en-US
Ok, that was a bad idea, the link again:
scoped proxies at neotrivium.com
[...] Hobo creator insists you check out scope out… Here’s why [...]
[...] Scope Out ActiveRecord Conditions- A way to clean up code that needs to work with conditions in ActiveRecord. Bears investigating. (via Tom) [...]
Thanks Tom! I’m going to give it a try in a new project today.