lib/aspect4r/base.rb in aspect4r-0.9.1 vs lib/aspect4r/base.rb in aspect4r-0.10.0

- old
+ new

@@ -76,10 +76,10 @@ yield ensure methods.each do |method| method_with_advices = "#{method}_with_advices" - next unless instance_methods.include?(method_with_advices) + next unless instance_methods.detect {|method| method.to_s == method_with_advices } send :alias_method, method, method_with_advices self.send :remove_method, method_with_advices end end \ No newline at end of file