Module: Roleable::ClassMethods
- Defined in:
- app/models/concerns/roleable.rb
Instance Method Summary collapse
Instance Method Details
#policed_roles(user) ⇒ Object
19 20 21 |
# File 'app/models/concerns/roleable.rb', line 19 def policed_roles user User.roles.keys.map {|role| [role.titleize,role] if User.roles[role] <= User.roles[user.role] }.compact end |