You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
No, I would think not. I'm not familiar with that part of the code, so I'll try and take a look, but I see no reason why a parent should have an index. I haven't actually run into this problem before and I do believe I have projects that should have, so I'll go double check they show the same issues.
The index action fails on not having the ability to :index Parent.
Access denied on index {#<Parent ..
Stepping through the code, Parent is authorized on :show first which is correct.
When authorizing Child:
resource_instance
is nil andresource_class_with_parent
returns a hash:Child is then ignored completely when matching the rule
It would appear this subject notation has to do with nesting and is no longer being used.
resource_class_with_parent
is not used anywhere else.defining
authorize_resource
to return the resource class instead solves this issue.The tests do not indicate an reason why this should not be the case all of the time. Is this behaviour intended?
The text was updated successfully, but these errors were encountered: