Permalink
Browse files

saving user_id as string in database

  • Loading branch information...
1 parent 5a4b36c commit 7f7597f4208d2376bc4c2070165c75a88dc911ea @jacquescrocker committed Jun 9, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/aarrr/session.rb
View
@@ -69,7 +69,7 @@ def track!(event_name, options = {})
user_updates = {
"last_event_at" => Time.now.getutc
}
- user_updates["user_id"] = options["user_id"] if options["user_id"]
+ user_updates["user_id"] = options["user_id"].to_s if options["user_id"]
update({
"$set" => user_updates
})

0 comments on commit 7f7597f

Please sign in to comment.