Merge pull request #3670 from p0deje/public_send

core: public_send vs send when merging configs
This commit is contained in:
Mitchell Hashimoto 2014-05-07 09:40:53 -07:00
commit 62986e1324
1 changed files with 2 additions and 2 deletions

View File

@ -55,10 +55,10 @@ module Vagrant
# merge every key. This avoids issues with the same reference # merge every key. This avoids issues with the same reference
# being part of the config. # being part of the config.
old_state["config_map"].each do |k, _| old_state["config_map"].each do |k, _|
old.send(k) old.public_send(k)
end end
new_state["config_map"].each do |k, _| new_state["config_map"].each do |k, _|
new.send(k) new.public_send(k)
end end
# The config map for the new object is the old one merged with the # The config map for the new object is the old one merged with the