Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Casting agent_id to as strings
  • Loading branch information
sbellity committed Sep 13, 2010
1 parent c5bab6d commit 78f9170
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/brm_client/logger.rb
Expand Up @@ -35,10 +35,10 @@ def event(event_name, data=nil, context=nil, event_ref="")
event["data"] = data || {}
event["context"] = context || {}

event["data"]["agent"] = {:id => facet_id, :type => "facet"} if facet_id
event["data"]["agent"] = {:id => facet_id.to_s, :type => "facet"} if facet_id

if user_id
event["data"]["agent"] ||= {:id => user_id, :type => "user"}
event["data"]["agent"] ||= {:id => user_id.to_s, :type => "user"}
event["context"]["userID"] = user_id
end

Expand Down

0 comments on commit 78f9170

Please sign in to comment.