Skip to content

Disabling sending data in development environment #49

@wjessop

Description

@wjessop

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions