Permalink
Browse files

return result after track

  • Loading branch information...
1 parent c15b16d commit 91682d69a96d74efe37bc77d43add132f6a10293 @jacquescrocker committed Jun 3, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/aarrr/session.rb
View
@@ -37,7 +37,7 @@ def save(response)
def track!(event_name, options = {})
# add event tracking
- AARRR.events.insert({
+ result = AARRR.events.insert({
"aarrr_user_id" => self.id,
"event_name" => event_name,
"event_type" => options[:event_type],
@@ -53,6 +53,8 @@ def track!(event_name, options = {})
"last_event_at" => Time.now.getutc
}
})
+
+ result
end
# more helpers

0 comments on commit 91682d6

Please sign in to comment.