You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
devdocs/lib/docs/subscribers/store_subscriber.rb

20 lines
381 B

# frozen_string_literal: true
module Docs
class StoreSubscriber < Subscriber
self.namespace = 'store'
def create(event)
log "Create: #{format_path event.payload[:path]}"
end
def update(event)
log "Update: #{format_path event.payload[:path]}"
end
def destroy(event)
log "Delete: #{format_path event.payload[:path]}"
end
end
end