# With\_scope and filters for Rails 1.1 (scoped\_access plugin)

**URL:** <https://www.ruby-forum.com/t/with-scope-and-filters-for-rails-1-1-scoped-access-plugin/56408>\
**Category:** Rails\
**Created:** [March 31, 2006, 12:58am UTC](https://www.ruby-forum.com/t/with-scope-and-filters-for-rails-1-1-scoped-access-plugin/56408 "2006-03-31T00:58:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jon\_Tirsen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ebca7d/32.png) [@Jon\_Tirsen](https://www.ruby-forum.com/u/Jon_Tirsen)\
**Post date:** [March 31, 2006, 12:58am UTC](https://www.ruby-forum.com/t/with-scope-and-filters-for-rails-1-1-scoped-access-plugin/56408/1 "2006-03-31T00:58:34Z")

</div>

Has anyone successfully gotten the scoped\_access[1] plugin to work in  
Rails 1.1? Some of the methods it was relying on are now no longer  
accessible. It seems the only way to add scope is to use the  
‘with\_scope’ method that takes a block, but since Rails doesn’t have  
real around filters[2] I cannot see a way of adding a scope using a  
filter.

Anyone using with\_scope and filters that can shed any light?

Cheers,  
Jon

[1] [http://habtm.com/articles/2006/02/22/nested-with\_scope](http://habtm.com/articles/2006/02/22/nested-with_scope)

[2] “around” was originally defined in CLOS (Common Lisp) 30 years ago.  
It’s when some form of interceptor is called and is given full control  
of calling the next interceptor in the chain. “around” is simple yet  
incredibly powerful and can not only be used to implement “before” and  
“after” but all sorts of crazy interception types. I’m slightly  
disappointed Rails doesn’t have real “around” but hey, maybe I should  
just submit a patch!

---

<div class="post-metadata">

**Author:** ![Jon\_Tirsen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ebca7d/32.png) [@Jon\_Tirsen](https://www.ruby-forum.com/u/Jon_Tirsen)\
**Post date:** [March 31, 2006, 6:09am UTC](https://www.ruby-forum.com/t/with-scope-and-filters-for-rails-1-1-scoped-access-plugin/56408/2 "2006-03-31T06:09:41Z")

</div>

Jon Tirsen wrote:

> [2] “around” was originally defined in CLOS (Common Lisp) 30 years ago.

Less than 20 years - Common Lisp itself (without CLOS) came out in 1984,  
and CLOS was added around 1988.

---

<div class="post-metadata">

**Author:** ![Jon\_Tirsen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ebca7d/32.png) [@Jon\_Tirsen](https://www.ruby-forum.com/u/Jon_Tirsen)\
**Post date:** [March 31, 2006, 7:01am UTC](https://www.ruby-forum.com/t/with-scope-and-filters-for-rails-1-1-scoped-access-plugin/56408/3 "2006-03-31T07:01:51Z")

</div>

Justin F. wrote:

> Less than 20 years - Common Lisp itself (without CLOS) came out in 1984,  
> and CLOS was added around 1988.

I stand corrected.

---

<div class="post-metadata">

**Author:** ![Jon\_Tirsen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ebca7d/32.png) [@Jon\_Tirsen](https://www.ruby-forum.com/u/Jon_Tirsen)\
**Post date:** [March 31, 2006, 10:11am UTC](https://www.ruby-forum.com/t/with-scope-and-filters-for-rails-1-1-scoped-access-plugin/56408/4 "2006-03-31T10:11:20Z")

</div>

Jon Tirsen wrote:

> Has anyone successfully gotten the scoped\_access[1] plugin to work in  
> Rails 1.1?

I thought scoped\_access was now built into 1.1 so no need for a plugin  
anymore, but I could be wrong…

Jeroen

---

<div class="post-metadata">

**Author:** ![Jon\_Tirsen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ebca7d/32.png) [@Jon\_Tirsen](https://www.ruby-forum.com/u/Jon_Tirsen)\
**Post date:** [April 2, 2006, 5:08am UTC](https://www.ruby-forum.com/t/with-scope-and-filters-for-rails-1-1-scoped-access-plugin/56408/5 "2006-04-02T05:08:23Z")

</div>

Jon Tirsen wrote:

> Justin F. wrote:
> 
> > Less than 20 years - Common Lisp itself (without CLOS) came out in 1984,  
> > and CLOS was added around 1988.
> 
> I stand corrected.

Sorry to be picky… I was using Interlisp-D and LOOPS (precursor to  
CLOS) in 1984, then Common Lisp and CLOS on Macintosh around 1990.

I must get back up to speed with Common Lisp. One of my colleagues from  
the 90’s has managed to stay with Common Lisp, exclusively… and  
another is running a company specialising in Erlang, another language on  
my list.
