I am using Rails(4.2.1), Devise(3.4.1) and Pundit(1.0.0) and want to restrict the access to devise views(such as /users/edit) by my users role(rolify, 4.0.0).
How my policy should be named or how do I specify which model is referring to ? to match devise's
I tried to copy the devise controllers with a script in the docs but can't make it work.
What should I do to make this work, couldn't find anything that explain how to do this in a simple way. Just to be sure I am trying to use devise default views