ruby-on-railsrubyruby-on-rails-4rubygemsahoy

how to use ahoy email with api only application?


I am using ahoy email in my rails API only application, and I cant able to track the open and click event. Even record is not created in the ahoy table. I don't know how to debug


Solution

  • from https://github.com/ankane/ahoy

    If your entire Rails app is an API, you can use:

    Ahoy.api_only = true