ankane / ahoy

Simple, powerful, first-party analytics for Rails
MIT License
4.23k stars 377 forks source link

Allow to pass :user to Ahoy::Store through Ahoy::Tracker #525

Closed korun closed 1 year ago

korun commented 1 year ago

Hello @ankane, thanks for the gem.

So, we can pass :user directly to Ahoy::Tracker, but, unfortunately, it not defines one in Ahoy::Store.
This request fixes that.

This can be useful, for example, when we track some events asynchronously, without :controller, and with some additional user's parameters usage in Ahoy::Store#track_event.

ankane commented 1 year ago

Thanks @korun!