* 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>
5 lines
264 B
Ruby
5 lines
264 B
Ruby
# enable tracking for open, click and UTM params
|
|
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
|