summaryrefslogtreecommitdiff
path: root/lib/chef/dsl/definitions.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/dsl/definitions.rb')
-rw-r--r--lib/chef/dsl/definitions.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/dsl/definitions.rb b/lib/chef/dsl/definitions.rb
index 60b1cf6f61..00f6d91739 100644
--- a/lib/chef/dsl/definitions.rb
+++ b/lib/chef/dsl/definitions.rb
@@ -18,7 +18,7 @@ class Chef
# @api private
def has_resource_definition?(name)
- run_context.definitions.has_key?(name)
+ run_context.definitions.key?(name)
end
# Processes the arguments and block as a resource definition.