Browse Source

Update Ability to get user roles, not role

eperez-timeinput
Jason Denney 11 years ago
parent
commit
6f6902dd82
  1. 4
      app/models/ability.rb

4
app/models/ability.rb

@ -3,7 +3,9 @@ class Ability
def initialize(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
def admin

Loading…
Cancel
Save