app/controllers/bushido/data_controller.rb in bushido-0.0.29 vs app/controllers/bushido/data_controller.rb in bushido-0.0.30

- old
+ new

@@ -1,8 +1,9 @@ module Bushido class DataController < ApplicationController - # PUT /bushido/data/ + + # POST /bushido/data/ def index @key = params.delete(:key) if ENV["BUSHIDO_APP_KEY"] != @key respond_to do |format| format.html { render :layout => false, :text => true, :status => :forbidden } @@ -11,10 +12,11 @@ end end puts "OMG GOT DATA FROM BUSHIBUS" puts params.inspect - Bushido::Data.fire('global', params) + puts params[:category].inspect + Bushido::Data.fire(params, "#{params[:category]}.#{params[:event]}") respond_to do |format| format.json {render :json => {'acknowledged' => true}, :status => 200} end end end