lib/ddr/auth/roles/role_set.rb in ddr-models-2.11.0 vs lib/ddr/auth/roles/role_set.rb in ddr-models-3.0.0.alpha.1
- old
+ new
@@ -1,8 +1,7 @@
module Ddr::Auth
module Roles
- extend Deprecation
#
# Wraps a set of Roles
#
# @abstract
#
@@ -17,15 +16,9 @@
delegate :empty?, :clear, to: :role_set
def initialize(role_set)
@role_set = role_set
- end
-
- def granted
- Deprecation.warn(self.class, "`granted` is deprecated." \
- " Use the RoleSet object directly.")
- self
end
# Grants roles - i.e., adds them to the role set
# @example - default scope ("resource")
# grant type: "Curator", agent: "bob"