lib/vrowser.rb in vrowser-0.0.8 vs lib/vrowser.rb in vrowser-0.0.9
- old
+ new
@@ -252,12 +252,12 @@
def self.load_plugin(plugin_name)
load self.plugin_path(plugin_name.to_s)
end
def self.load_config(config)
- raise ArgumentError.new("config['plugins']") unless config["plugins"]
raise ArgumentError.new("config['qstat']") unless config["qstat"]
raise ArgumentError.new("config['database']") unless config["database"]
+ config['plugins'] ||= []
VrowserModel.connect(config["database"])
config['plugins'].each{ |plugin_symbol|
Vrowser.load_plugin plugin_symbol