diff options
author | John Keiser <john@johnkeiser.com> | 2015-10-28 20:52:28 -0700 |
---|---|---|
committer | John Keiser <john@johnkeiser.com> | 2015-10-28 20:52:28 -0700 |
commit | 571891bf67667d0240edd632c36fc84cd0fc8bbe (patch) | |
tree | b7e9c4397a7b1c79789d3350f2407ebd25ded7ec /lib/chef/property.rb | |
parent | f01f65150cbc21e9a42f42c444d430320aa8ba5a (diff) | |
download | chef-571891bf67667d0240edd632c36fc84cd0fc8bbe.tar.gz |
Make Property.derive create derived properties of the same typejk/custom_properties
Diffstat (limited to 'lib/chef/property.rb')
-rw-r--r-- | lib/chef/property.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/property.rb b/lib/chef/property.rb index e97d8f9607..3c40c020b6 100644 --- a/lib/chef/property.rb +++ b/lib/chef/property.rb @@ -431,7 +431,7 @@ class Chef modified_options.has_key?(:default) options = options.reject { |k,v| k == :name_attribute || k == :name_property || k == :default } end - Property.new(options.merge(modified_options)) + self.class.new(options.merge(modified_options)) end # |