From 09343dd20aac0096eab101dc13eb420bf55821ec Mon Sep 17 00:00:00 2001 From: Sean Grove Date: Mon, 25 Jul 2011 20:39:09 -0700 Subject: [PATCH] Event data structure tweak. --- lib/locomotive/hosting/bushido/hooks.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/locomotive/hosting/bushido/hooks.rb b/lib/locomotive/hosting/bushido/hooks.rb index ec0e96f8..c7832685 100644 --- a/lib/locomotive/hosting/bushido/hooks.rb +++ b/lib/locomotive/hosting/bushido/hooks.rb @@ -1,7 +1,7 @@ -Bushido::Data.listen("app.claimed") do |data| - puts "Saving #{Account.first.inspect} with incoming data #{data.inspect}" +Bushido::Data.listen("app.claimed") do |event| + puts "Saving #{Account.first.inspect} with incoming data #{event.inspect}" account = Account.first - account.email = data["email"] + account.email = event["data"].try(:[], "email") account.save end