Sha256: dfffefc474d8b011308f690990c740d396f566f2bbf079d61acf1c8a5d32bc88
Contents?: true
Size: 323 Bytes
Versions: 36
Compression:
Stored size: 323 Bytes
Contents
module RoleAuthorization module Roles class RoleGroup attr_accessor :klass, :roles def initialize(klass, roles) @klass = klass @roles = roles end def users(scope = nil) klass.find_all_by_name(roles).map {|role| role.users(scope) }.flatten end end end end
Version data entries
36 entries across 36 versions & 1 rubygems