Fix ahoy tracking and visits
This commit is contained in:
parent
1e9765c163
commit
e3daa31ef3
6 changed files with 38 additions and 21 deletions
|
|
@ -1,5 +1,7 @@
|
|||
module Ahoy
|
||||
class Store < Ahoy::Stores::ActiveRecordStore
|
||||
# customize here
|
||||
class Store < Ahoy::DatabaseStore
|
||||
def visit_model
|
||||
Visit
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue