Skip to content

Commit

Permalink
Fix Advice#with_method
Browse files Browse the repository at this point in the history
  • Loading branch information
gcao committed Feb 13, 2012
1 parent a89fed9 commit ba48f1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/aspector/advice.rb
Expand Up @@ -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
Expand Down

0 comments on commit ba48f1b

Please sign in to comment.