mirror of https://github.com/freeCodeCamp/devdocs
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.
18 lines
350 B
18 lines
350 B
11 years ago
|
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
|