summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuanitoFatas <katehuang0320@gmail.com>2016-08-31 15:19:56 +0800
committerJuanitoFatas <katehuang0320@gmail.com>2016-08-31 15:36:27 +0800
commit55c51ceec1f04a6175489803cb975c2c66fbee0c (patch)
tree58cdf422e9aade0158fe1c4a27e2a8f67825f137
parent138dde753d731020122827b511d314230104cfe8 (diff)
downloadbundler-55c51ceec1f04a6175489803cb975c2c66fbee0c.tar.gz
Move the alias to where it should be
-rw-r--r--lib/bundler/settings.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/bundler/settings.rb b/lib/bundler/settings.rb
index 4d1271df65..bed875420e 100644
--- a/lib/bundler/settings.rb
+++ b/lib/bundler/settings.rb
@@ -83,6 +83,7 @@ module Bundler
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 @@ module Bundler
end
end
- alias_method :set_local, :[]=
-
def delete(key)
@local_config.delete(key_for(key))
end