Sha256: a1febdf672b27cb5a5a7b7699c0e7e7af869fb0641661dce3f39cad371ab8276

Contents?: true

Size: 199 Bytes

Versions: 35

Compression:

Stored size: 199 Bytes

Contents

require "delegate"

module Ddr::Auth
  class ResourceRoles < SimpleDelegator

    def self.call(obj)
      new(obj).call
    end

    def call
      roles.in_resource_scope.result
    end

  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
ddr-models-3.0.8 lib/ddr/auth/resource_roles.rb
ddr-models-3.0.7 lib/ddr/auth/resource_roles.rb
ddr-models-3.0.6 lib/ddr/auth/resource_roles.rb
ddr-models-3.0.5 lib/ddr/auth/resource_roles.rb
ddr-models-3.0.4 lib/ddr/auth/resource_roles.rb
ddr-models-3.0.3 lib/ddr/auth/resource_roles.rb
ddr-models-3.0.2 lib/ddr/auth/resource_roles.rb
ddr-models-3.0.1 lib/ddr/auth/resource_roles.rb
ddr-models-3.0.0 lib/ddr/auth/resource_roles.rb
ddr-models-3.0.0.rc6 lib/ddr/auth/resource_roles.rb
ddr-models-3.0.0.rc5 lib/ddr/auth/resource_roles.rb
ddr-models-3.0.0.rc4 lib/ddr/auth/resource_roles.rb
ddr-models-3.0.0.rc3 lib/ddr/auth/resource_roles.rb
ddr-models-3.0.0.rc2 lib/ddr/auth/resource_roles.rb
ddr-models-3.0.0.rc1 lib/ddr/auth/resource_roles.rb
ddr-models-3.0.0.beta.22 lib/ddr/auth/resource_roles.rb
ddr-models-3.0.0.beta.21 lib/ddr/auth/resource_roles.rb
ddr-models-3.0.0.beta.20 lib/ddr/auth/resource_roles.rb
ddr-models-3.0.0.beta.18 lib/ddr/auth/resource_roles.rb
ddr-models-3.0.0.beta.17 lib/ddr/auth/resource_roles.rb