The group you are posting to is a
Usenet group . Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
From:
Dmitry Polushkin <dmitry.polush... @gmail.com>
Date: Wed, 27 May 2009 06:01:19 -0700 (PDT)
Local: Wed, May 27 2009 9:01 am
Subject: Namespaces support
To support it simple change this line:
context = @context || contr.class.controller_name.to_sym
to
context = @context || contr.class.controller_path('/', '_').to_sym
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Dmitry Polushkin <dmitry.polush... @gmail.com>
Date: Wed, 27 May 2009 06:05:18 -0700 (PDT)
Local: Wed, May 27 2009 9:05 am
Subject: Re: Namespaces support
typo:
context = @context || contr.class.controller_path.gsub('/',
'_').to_sym
On May 27, 2:01 pm, Dmitry Polushkin <dmitry.polush... @gmail.com>
wrote:
> To support it simple change this line:
> context = @context || contr.class.controller_name.to_sym
> to
> context = @context || contr.class.controller_path('/', '_').to_sym
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Steffen Bartsch <sbart... @tzi.de>
Date: Wed, 27 May 2009 19:23:14 +0200
Local: Wed, May 27 2009 1:23 pm
Subject: Re: [declarative_auth] Re: Namespaces support
Am Mittwoch, 27. Mai 2009 schrieb Dmitry Polushkin:
> context = @context || contr.class.controller_path.gsub('/', > '_').to_sym
I would be glad to have decl_auth support namespaces. I am not sure about the consequences of this change, though. Could you provide test cases for this approach, e.g. in a forked repository so that I can pull from there? An alternative to this code change is to give the context in the filter_access_to call as an option.
Steffen
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Dmitry Polushkin <dmitry.polush... @gmail.com>
Date: Thu, 28 May 2009 02:42:34 -0700 (PDT)
Local: Thurs, May 28 2009 5:42 am
Subject: Re: Namespaces support
Thanks Steffen for the answer. I will try to provide code with tests
in 2 weeks.
On May 27, 6:23 pm, Steffen Bartsch <sbart... @tzi.de> wrote:
> Am Mittwoch, 27. Mai 2009 schrieb Dmitry Polushkin:
> > context = @context || contr.class.controller_path.gsub('/',
> > '_').to_sym
> I would be glad to have decl_auth support namespaces. I am not sure about the
> consequences of this change, though. Could you provide test cases for this
> approach, e.g. in a forked repository so that I can pull from there?
> An alternative to this code change is to give the context in the
> filter_access_to call as an option.
> Steffen
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
fturtle <funkingb... @gmail.com>
Date: Sun, 21 Jun 2009 07:45:48 -0700 (PDT)
Local: Sun, Jun 21 2009 10:45 am
Subject: Re: Namespaces support
Any update on this? I'm after namespace support too!
Thanks,
fturtle
On May 28, 10:42 am, Dmitry Polushkin <dmitry.polush... @gmail.com>
wrote:
> Thanks Steffen for the answer. I will try to provide code with tests
> in 2 weeks.
> On May 27, 6:23 pm, Steffen Bartsch <sbart... @tzi.de> wrote:
> > Am Mittwoch, 27. Mai 2009 schrieb Dmitry Polushkin:
> > > context = @context || contr.class.controller_path.gsub('/',
> > > '_').to_sym
> > I would be glad to have decl_auth support namespaces. I am not sure about the
> > consequences of this change, though. Could you provide test cases for this
> > approach, e.g. in a forked repository so that I can pull from there?
> > An alternative to this code change is to give the context in the
> > filter_access_to call as an option.
> > Steffen
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
tobmatth <goo... @evil-knievel.de>
Date: Tue, 23 Jun 2009 01:55:07 -0700 (PDT)
Local: Tues, Jun 23 2009 4:55 am
Subject: Re: Namespaces support
You must
Sign in before you can post messages.
You do not have the permission required to post.