2011-07-26 03:39:09 +00:00
|
|
|
Bushido::Data.listen("app.claimed") do |event|
|
|
|
|
puts "Saving #{Account.first.inspect} with incoming data #{event.inspect}"
|
2011-07-26 02:37:23 +00:00
|
|
|
|
|
|
|
account = Account.first
|
2011-07-26 03:39:09 +00:00
|
|
|
account.email = event["data"].try(:[], "email")
|
2011-07-26 02:37:23 +00:00
|
|
|
account.save
|
|
|
|
end
|