From 55c51ceec1f04a6175489803cb975c2c66fbee0c Mon Sep 17 00:00:00 2001 From: JuanitoFatas Date: Wed, 31 Aug 2016 15:19:56 +0800 Subject: [PATCH] Move the alias to where it should be --- lib/bundler/settings.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/bundler/settings.rb b/lib/bundler/settings.rb index 4d1271df655..bed875420ee 100644 --- a/lib/bundler/settings.rb +++ b/lib/bundler/settings.rb @@ -83,6 +83,7 @@ def []=(key, value) local_config_file || raise(GemfileNotFound, "Could not locate Gemfile") set_key(key, value, @local_config, local_config_file) end + alias_method :set_local, :[]= def temporary(update) existing = Hash[update.map {|k, _| [k, @temporary[k]] }] @@ -95,8 +96,6 @@ def temporary(update) end end - alias_method :set_local, :[]= - def delete(key) @local_config.delete(key_for(key)) end