Changeset 1754
- Timestamp:
- 08/20/08 11:41:30 (3 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
hive/trunk/data_webapp/app/controllers/bee_controller.rb
r1746 r1754 1 1 # Talks exclusively to the Worker Bees 2 2 class BeeController < ApplicationController 3 include WorkerBeeAuthorization4 3 before_filter :verify_signed_request 5 4 5 # Get the latest History URLS 6 6 def latest 7 7 data = HistoryUrl.fetch_latest(params[:id]) … … 12 12 raw_data = request.raw_post 13 13 begin 14 urls = ActiveSupport::JSON.decode( d)14 urls = ActiveSupport::JSON.decode(raw_data) 15 15 work = build_hash_for_drone(urls) 16 16 DroneJob.insert(work) 17 rescue 17 rescue Exception => e 18 logger.error("Bee error adding work: #{e.message}") 18 19 end 19 20 render :json => ["ok"]
