Project

General

Profile

« Previous | Next » 

Revision b28fbd1e

Added by Marc Dequènes almost 16 years ago

  • ID b28fbd1eb1f65e6b7e0f18128fd7f379b2292a89

[fix] don't fail to merge bot-specific config if it is empty

View differences:

lib/cyborghood/base.rb
def self.load(name = nil)
# load all config parts
config = fetch_config
config = merge_configs(config, fetch_config(name)) unless name.nil?
unless name.nil?
config_spc = fetch_config(name)
config = merge_configs(config, config_spc) if config_spc
end
# create config object for easier access
@@config = config.to_ostruct.freeze

Also available in: Unified diff