lib/ddr/auth/group.rb in ddr-models-2.11.0 vs lib/ddr/auth/group.rb in ddr-models-3.0.0.alpha.1
- old
+ new
@@ -2,11 +2,10 @@
module Ddr
module Auth
# Wraps a String
class Group < SimpleDelegator
- extend Deprecation
attr_reader :rule
def initialize(id, opts={}, &rule)
super(id)
@@ -28,14 +27,9 @@
@label || id
end
def agent
to_s
- end
-
- def to_agent
- Deprecation.warn(self.class, "`to_agent` is deprecated. Use `agent` instead.")
- agent
end
def inspect
"#<#{self.class.name} id=#{id.inspect}, label=#{label.inspect}>"
end