#17 ✓invalid

Conflict with default_scope

Reported by tset | August 14th, 2009 @ 11:45 AM

I'm using multiple if_attributes (in role :guest) and a default_scope in the model. This causes an merge exception. It seems decl_auth doesn't expect a default_scope?

with_scope works just fine, tho.

Comments and changes to this ticket

  • Steffen Bartsch

    Steffen Bartsch August 14th, 2009 @ 01:17 PM

    • Tag changed from bug, scope to bug, named_scope

    Generally speaking, decl_auth acts as a normal named_scope. So decl_auth shouldn't care about any previous scopes.

    Could you give more details on the problem? What is your default scope? Which if_attribute rules are you using? What is the exact error? Ideally, you could provide a failing test case.

  • Steffen Bartsch

    Steffen Bartsch October 29th, 2009 @ 10:46 AM

    • State changed from “new” to “invalid”

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

By now, decl_auth is using the GitHub issue tracker as well. Please use the one over there: http://github.com/stffn/declarative_authorization/issues

People watching this ticket