lib/larva/processor.rb in larva-0.4.0 vs lib/larva/processor.rb in larva-0.4.1
- old
+ new
@@ -28,10 +28,10 @@
false
end
end
def normal_process
- if self.process
+ if respond_to?(:process) && self.process
Propono.config.logger.info "Message Processed: #{message}"
else
Propono.config.logger.info "Unrecognized event type, entity: #{entity} action: #{action}."
end
end