lib/ddr/auth/group.rb in ddr-models-2.3.2 vs lib/ddr/auth/group.rb in ddr-models-2.4.0.rc1

- old
+ new

@@ -2,10 +2,11 @@ module Ddr module Auth # Wraps a String class Group < SimpleDelegator + extend Deprecation attr_reader :rule def initialize(id, opts={}, &rule) super(id) @@ -30,10 +31,10 @@ def agent to_s end def to_agent - warn "[DEPRECATION] `#{self.class.name}#to_agent` is deprecated. Use `#{self.class.name}#agent instead." + Deprecation.warn(self.class, "`to_agent` is deprecated. Use `agent` instead.") agent end def inspect "#<#{self.class.name} id=#{id.inspect}, label=#{label.inspect}>"