Reputation: 11
Currently project uses restful-authentication with different roles. In order to migrate to devise, will I have to create the roles again in devise or is there some way that I can use the code written for restful authentication??
Upvotes: 1
Views: 318
Reputation: 10146
Devise handles only user Authentication, not authorization. To manage roles and permissions, consider using CanCan for permissions and Rolify for managing roles.
-- EDIT --
You should also check the devise wiki page on migrating from restful_auth to devise. We were able to successfully migrate, without too much pain and rework.
Upvotes: 3