On Sat, Nov 22, 2008 at 5:27 AM, Aurels <[EMAIL PROTECTED]> wrote:

>
> Mmmm yes but in that case all the slice is authenticated, the 'public'
> routes too...
>
> Aurélien
>

Well if you need to have a mix then you're going to need somethign a little
more custom.

Perhaps you can have it as a configuration option and then either put the
routes in an if block, or put the before filter on if the configuration is
set.

MySlice[:use_logins] = true

before(:ensure_authenticated) if MySlice[:use_logins]

You could do something like that.

Cheers

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"merb" 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/merb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to