real merge

This commit is contained in:
xudeke
2014-12-10 14:42:34 +08:00
parent 0d2f2f23dd
commit a64fb3a63e
+1 -1
View File
@@ -49,7 +49,7 @@ module Qiniu
end
def initialize_connect options = {}
@settings = DEFAULT_OPTIONS.merge(options)
@settings = DEFAULT_OPTIONS.merge!(options)
REQUIRED_OPTION_KEYS.each do |opt|
raise MissingArgsError, [opt] unless @settings.has_key?(opt)
end