Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
nil is not a symbol #22
When I use the ruby ruby-1.9.3-p327 and authority 2.4.1, I have this code in my controller.
And I get the following error when I visit admins index page.
I change the code as follow, then it works.
So I think this code does not consider about the inheritance:
Thanks for pointing this out. The problem is that
I think the best behavior would be for it to be inherited, but allow you to override it without affecting the parent. So I'll probably add an
def self.inherited(child) child.authority_resource = authority_resource end
I'll fix this as soon as I can test it out properly.