lib/ddr/auth/resource_roles.rb in ddr-models-3.0.0.alpha.4 vs lib/ddr/auth/resource_roles.rb in ddr-models-3.0.0.beta.1

- old
+ new

@@ -1,18 +1,15 @@ require "delegate" module Ddr::Auth class ResourceRoles < SimpleDelegator - # @param obj [Object] an object that receives :roles and returns a RoleSet - # @return [Ddr::Auth::Roles::RoleSetQuery] def self.call(obj) new(obj).call end - # @return [Ddr::Auth::Roles::DetachedRoleSet] def call - roles.in_resource_scope.detach + roles.in_resource_scope.result end end end