completely green

This commit is contained in:
2014-08-13 16:37:59 +02:00
parent d6e7c4998f
commit a675999d01
6 changed files with 11 additions and 5 deletions
@@ -3,6 +3,10 @@ root.Qsupplier=
watch_events: ->
faye = new Faye.Client(event_host)
faye.subscribe "/supplier/#{supplier_object.id}", (e)=>
<% if Rails.env.development? %>
console.log "Event: #{e.event}"
console.log e.data
<% end %>
if(e.event == 'new_order')
if App
App.store().pushPayload(e.data)