3scale/issues-test — Issue #41: make the user role also accept a string
Author: HakubJozak
Created: 2012-02-10 18:25:52+00:00
State: closed
Labels: chore

user.role = "admin" is not treated the same as user.role = :admin, e.g.
User model (app/models/user/roles.rb)
def admin?
role?(:admin)
end

Tasks

https://www.pivotaltracker.com/story/show/6169615