Make ahoy_email default_options[:click] an env var (#20757)
* Make ahoy_email default_options[:click] an env var * Also noted a typo here * Manually mount AhoyEmail::Engine * Disable by default --------- Co-authored-by: Mac Siri <krairit.siri@gmail.com>
This commit is contained in:
parent
0d4f7c7e19
commit
eb8006a841
3 changed files with 4 additions and 4 deletions
|
|
@ -8,9 +8,8 @@
|
|||
</tr>
|
||||
<% if @user %>
|
||||
<tr>
|
||||
<td style="padding:1% 12% 2% 4%;16px;line-height:calc(20px + 0.2vw);color:#202121">
|
||||
<td style="padding:3% 12% 2% 4%;font-size:18px;line-height:22px;color:#202121">
|
||||
<%= signed_up_with(@user) %>
|
||||
|
||||
<br /><br />
|
||||
<div style="font-size:0.78em">
|
||||
<% if @unsubscribe %>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
# enable tracking for open, click and UTM params
|
||||
AhoyEmail.api = true
|
||||
AhoyEmail.default_options[:click] = true
|
||||
AhoyEmail.api = false
|
||||
AhoyEmail.default_options[:click] = Rails.env.production? ? ENV["AHOY_EMAIL_CLICK_ON"] == "YES" : true
|
||||
AhoyEmail.default_options[:utm_params] = false
|
||||
AhoyEmail.default_options[:message] = true
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ Rails.application.routes.draw do
|
|||
get "/confirm-email", to: "confirmations#new"
|
||||
delete "/sign_out", to: "devise/sessions#destroy"
|
||||
end
|
||||
mount AhoyEmail::Engine => "/ahoy"
|
||||
|
||||
get "/r/mobile", to: "deep_links#mobile"
|
||||
get "/.well-known/apple-app-site-association", to: "deep_links#aasa"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue