Go get scope_out - it should be in core!
Posted by
Tom | April 3, 2007 5 Responses comments

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.

Reader Comments Add your comment »

Thanks Tom! I’m going to give it a try in a new project today.

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) [...]


Write a Comment

Comments are formatted using markdown. To include code, either quote it in `backticks` or indent a code-block by 4 spaces.