Sha256: 7df5cd85fc86607be300e7b0be8b8c28dfea63932f5fd970c4141f9740052752
Contents?: true
Size: 406 Bytes
Versions: 21
Compression:
Stored size: 406 Bytes
Contents
module CanTango class PermissionEngine < Engine module Selector class Licenses < Base attr_reader :roles, :role_groups def initialize subject @roles = subject.roles_list @role_groups = subject.role_groups_list end def relevant? permission (roles | role_groups).include? permission.to_sym end end end end end
Version data entries
21 entries across 21 versions & 1 rubygems