lib/global_session/configuration.rb in global_session-3.2.6 vs lib/global_session/configuration.rb in global_session-3.2.7

- old
+ new

@@ -142,10 +142,10 @@ # Determine whether a given configuration key was specified. # # @return [Boolean] true if the key is present in the common or per-environment stanzas def has_key?(k) - @config[@environment].has_key?(k) || @config['common'].has_key?(k) + (@config.has_key?(@environment) && @config[@environment].has_key?(k)) || @config['common'].has_key?(k) end alias key? has_key? def validate # :nodoc