lib/untied-consumer/observer.rb in untied-consumer-0.0.3 vs lib/untied-consumer/observer.rb in untied-consumer-0.0.4
- old
+ new
@@ -68,9 +68,10 @@
entity = args.shift
return nil unless CALLBACKS.include? event_name
return nil unless service == observed_service
return nil unless observed_classes.include? klass
+ return nil unless respond_to?(event_name)
self.send(event_name, entity)
end
def observed_classes