Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

every time policy is edited, it disapears #386

Closed
will opened this issue Apr 27, 2016 · 1 comment
Closed

every time policy is edited, it disapears #386

will opened this issue Apr 27, 2016 · 1 comment

Comments

@will
Copy link

will commented Apr 27, 2016

I've ran out of ideas tracking this down. Whenever I edit a policy, then reload a page, I get undefined methodpolicy' for #<#Class:0x…:0x…>`. Sopping rails and starting it again fixes it, until I edit the policy again.

rails-4.2.6 and pundit-1.1.0

It's maybe something with the reloader in rails, but I'm not using namespaces like in #178

I'm not sure how to gather more info, sorry.

@will
Copy link
Author

will commented Apr 29, 2016

This appears to have been caused by having Pundit set up in a PunditHelper initializer, then included into ApplicationControler immediately thereafter. Copying the things into ApplicationController itself seems to have fixed the issue.

@will will closed this as completed Apr 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant