lib/instana/util.rb in instana-1.0.3 vs lib/instana/util.rb in instana-1.1.0

- old
+ new

@@ -5,10 +5,11 @@ # # @param klass [Object] The class or module that holds the method to be alias'd. # @param method [Symbol] The name of the method to be aliased. # def method_alias(klass, method) - if klass.method_defined?(method.to_sym) + if klass.method_defined?(method.to_sym) || + klass.private_method_defined?(method.to_sym) with = "#{method}_with_instana" without = "#{method}_without_instana" klass.class_eval do