lib/doggy/models/monitor.rb in doggy-2.0.5 vs lib/doggy/models/monitor.rb in doggy-2.0.6

- old
+ new

@@ -18,10 +18,10 @@ return super unless monitor.id && monitor.loading_source == :local # Pull remote silenced state. If we don't send this value, Datadog # assumes that we want to unmute the monitor. remote_monitor = Monitor.find(monitor.id) - self.silenced = remote_monitor.options.silenced + self.silenced = remote_monitor.options.silenced if remote_monitor.options super end end attribute :id, Integer