lib/fuli/config.rb in fuli_the_guard-0.1.0 vs lib/fuli/config.rb in fuli_the_guard-0.1.1
- old
+ new
@@ -4,11 +4,11 @@
class Config
attr_accessor :logger, :warn_notifiers, :error_notifiers
def initialize(config_hash = {})
self.logger = config_hash[:logger]
- self.warn_notifiers = config_hash[:warn_notifiers]
- self.error_notifiers = config_hash[:error_notifiers]
+ self.warn_notifiers = config_hash[:warn_notifiers] || []
+ self.error_notifiers = config_hash[:error_notifiers] || []
merge(config_hash)
end
class << self
attr_writer :instance