Method: Noticent::Config#create_dynamics
- Defined in:
- lib/noticent/config.rb
#create_dynamics ⇒ Object
147 148 149 150 151 152 153 154 155 156 |
# File 'lib/noticent/config.rb', line 147 def create_dynamics return if alerts.nil? alerts.keys.each do |alert| const_name = "ALERT_#{alert.to_s.upcase}" next if Noticent.const_defined?(const_name) Noticent.const_set(const_name, alert) end end |