Update Ability to get user roles, not role

This commit is contained in:
Jason Denney
2013-04-25 21:25:49 -04:00
parent a083ed715b
commit 6f6902dd82
+3 -1
View File
@@ -3,7 +3,9 @@ class Ability
def initialize(current_user) def initialize(current_user)
@current_user = current_user @current_user = current_user
self.send(current_user.role.role.to_sym) current_user.roles.each do |role|
self.send(role.role.to_sym)
end
end end
def admin def admin