diff options
author | Jay Mundrawala <jdmundrawala@gmail.com> | 2015-06-30 07:11:04 -0700 |
---|---|---|
committer | Jay Mundrawala <jdmundrawala@gmail.com> | 2015-06-30 07:12:11 -0700 |
commit | 6906e4361d0d0bfd15ba7598c310d788a3395b1b (patch) | |
tree | e4111ef53ed1ecdce78e61fe8a5e224b383574b8 /lib | |
parent | 1eec58ab57c6a7c13632ba358c17157557a31c79 (diff) | |
download | chef-6906e4361d0d0bfd15ba7598c310d788a3395b1b.tar.gz |
Use const_set instead of evaljdm/lwrp-base
Diffstat (limited to 'lib')
-rw-r--r-- | lib/chef/resource.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource.rb b/lib/chef/resource.rb index c7ec43d974..704490e748 100644 --- a/lib/chef/resource.rb +++ b/lib/chef/resource.rb @@ -1499,7 +1499,7 @@ class Chef Chef::Resource.send(:remove_const, class_name) end - eval("Chef::Resource::#{class_name} = resource_class") + Chef::Resource.const_set(class_name, resource_class) deprecated_constants[class_name.to_sym] = resource_class end |