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.0.beta.16 lib/ddr/auth/resource_roles.rb
ddr-models-3.0.0.beta.15 lib/ddr/auth/resource_roles.rb
ddr-models-3.0.0.beta.14 lib/ddr/auth/resource_roles.rb
ddr-models-3.0.0.beta.13 lib/ddr/auth/resource_roles.rb
ddr-models-3.0.0.beta.12 lib/ddr/auth/resource_roles.rb
ddr-models-3.0.0.beta.11 lib/ddr/auth/resource_roles.rb
ddr-models-3.0.0.beta.10 lib/ddr/auth/resource_roles.rb
ddr-models-3.0.0.beta.9 lib/ddr/auth/resource_roles.rb
ddr-models-3.0.0.beta.8 lib/ddr/auth/resource_roles.rb
ddr-models-3.0.0.beta.7 lib/ddr/auth/resource_roles.rb
ddr-models-3.0.0.beta.6 lib/ddr/auth/resource_roles.rb
ddr-models-3.0.0.beta.4 lib/ddr/auth/resource_roles.rb
ddr-models-3.0.0.beta.3 lib/ddr/auth/resource_roles.rb
ddr-models-3.0.0.beta.2 lib/ddr/auth/resource_roles.rb
ddr-models-3.0.0.beta.1 lib/ddr/auth/resource_roles.rb