vevo
vevo

Reputation: 11

Migration from restful authentication to devise

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

Answers (1)

zsquare
zsquare

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

Related Questions