Fix ahoy tracking and visits

This commit is contained in:
Stella Rouzi 2018-03-18 10:57:39 +02:00 committed by James Mason
parent b54e3f7ab9
commit 3bb73f27cf
6 changed files with 38 additions and 21 deletions

View file

@ -1,5 +1,7 @@
module Ahoy
class Store < Ahoy::Stores::ActiveRecordStore
# customize here
class Store < Ahoy::DatabaseStore
def visit_model
Visit
end
end
end

View file

@ -14,6 +14,8 @@ Osem::Application.routes.draw do
path: 'accounts'
end
mount Ahoy::Engine => '/ahoy'
# Use letter_opener_web to open mails in browser (e.g. necessary for Vagrant)
if Rails.env.development?
mount LetterOpenerWeb::Engine, at: "/letter_opener"