lib/isimud/event_listener.rb
def register_observer_class(observer_class)
      @observer_mutex.synchronize do
        return if @observed_models.include?(observer_class)
        @observed_models << observer_class
        log "EventListener: registering observer class #{observer_class}"
        observer_queue.bind(models_exchange, routing_key: "#{Isimud.model_watcher_schema}.#{observer_class.base_class.name}.*")
      end
    end
def register_observer_class(observer_class)
      @observer_mutex.synchronize do
        return if @observed_models.include?(observer_class)
        @observed_models << observer_class
        log "EventListener: registering observer class #{observer_class}"
        observer_queue.bind(models_exchange, routing_key: "#{Isimud.model_watcher_schema}.#{observer_class.base_class.name}.*")
      end
    end
def register_observer_class ( observer_class ) @observer_mutex . synchronize do return if @observed_models . include? ( observer_class ) @observed_models << observer_class log "EventListener: registering observer class #{observer_class}" observer_queue . bind ( models_exchange , routing_key : "#{Isimud.model_watcher_schema}.#{observer_class.base_class.name}.*" ) end end
Register the observer class watcher
Register the observer class watcher