Sha256: b75caf1a26aebbb3a76c2c079f9d0e8931479fbb6fee1ec196acddb5213d628c
Contents?: true
Size: 299 Bytes
Versions: 1
Compression:
Stored size: 299 Bytes
Contents
module CanTango module PermitEngine module RoleMatcher def role_match? user_account user_account.has_role? permit_name(self.class) end def role_group_match? user, group_name = nil user_account.is_in_group? permit_name(self.class) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cantango-0.8.0 | lib/cantango/permit_engine/role_matcher.rb |