mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Fix ahoy tracking and visits
This commit is contained in:
parent
b54e3f7ab9
commit
3bb73f27cf
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