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
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.
The text was updated successfully, but these errors were encountered:
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.
I've ran out of ideas tracking this down. Whenever I edit a policy, then reload a page, I get
undefined method
policy' 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.
The text was updated successfully, but these errors were encountered: