What's the recommended way of setting the gem up for Rails? I'm looking for:
- Not sending data in development mode (ideally logging instead)
- Making the posthog client available to Ruby code in the app (controllers, models etc.). I see one guide recommends assigning the client to $posthog, but does this work in forking threaded servers such as Puma?