diff --git a/lib/aspector/advice.rb b/lib/aspector/advice.rb index d0ede9d..0c5dee6 100644 --- a/lib/aspector/advice.rb +++ b/lib/aspector/advice.rb @@ -17,7 +17,7 @@ def initialize parent, type, method_matcher, with_method, options = {}, &block end def with_method - @with_method ||= "aspect_#{@parent.hash}_#{@parent.send(:aop_advices).index(self)}" + @with_method ||= "aop_#{hash}" end def match? method, context = nil