Event data structure tweak.
This commit is contained in:
parent
93a852c705
commit
09343dd20a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user