Sha256: 19fb5b5bd0566fa3b494af1ff4decf256f0f965a6b551f99fdfc4b6edefadcd3
Contents?: true
Size: 283 Bytes
Versions: 2
Compression:
Stored size: 283 Bytes
Contents
module RoleAuthorization module Roles class RoleGroup attr_accessor :klass, :roles def initialize(klass, roles) @klass = klass @roles = roles end def users klass.find_all_by_name(roles).map(&:users) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
role_authorization-0.2.1 | lib/role_authorization/roles/role_group.rb |
role_authorization-0.2.0 | lib/role_authorization/roles/role_group.rb |