summaryrefslogtreecommitdiff
path: root/lib/chef/decorator.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/decorator.rb')
-rw-r--r--lib/chef/decorator.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/decorator.rb b/lib/chef/decorator.rb
index 546c49baed..ac0f8fdfbb 100644
--- a/lib/chef/decorator.rb
+++ b/lib/chef/decorator.rb
@@ -52,7 +52,7 @@ class Chef
# adding the define_singleton_method call and @__defined_methods__ tracking
def method_missing(m, *args, &block)
r = true
- target = self.__getobj__ { r = false }
+ target = __getobj__ { r = false }
if r && target.respond_to?(m)
# these next 4 lines are the patched code