add config parameters
add config.signup_survey_url, config.signup_survey_cutoff_date
This commit is contained in:
parent
fb4babc957
commit
23b3fb572f
|
|
@ -483,7 +483,7 @@ module JamRuby
|
|||
def signup_survey(user)
|
||||
@user = user
|
||||
@subject = I18n.t('user_mailer.signup_survey.subject')
|
||||
@survey_url = "https://www.surveymonkey.com/r/WVBKLYL"
|
||||
@survey_url = Rails.application.config.signup_survey_url
|
||||
mail(:to => user.email, :subject => @subject) do |format|
|
||||
format.text
|
||||
format.html { render layout: "user_mailer_beta" }
|
||||
|
|
|
|||
|
|
@ -9,7 +9,8 @@ module JamRuby
|
|||
end
|
||||
|
||||
def self.survey_users
|
||||
User.where("users.signup_survey_sent_at IS NULL AND users.created_at < ?", 1.days.ago)
|
||||
cutoff_date = Date.parse(Rails.application.config.signup_survey_cutoff_date) # Define a cutoff date for the survey
|
||||
User.where("users.signup_survey_sent_at IS NULL AND users.created_at < ? AND users.created_at > ?", 1.days.ago, cutoff_date)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
@ -519,6 +519,8 @@ if defined?(Bundler)
|
|||
config.spa_origin_url = "http://beta.jamkazam.local:4000"
|
||||
config.user_match_monitoring_email = "user_match_monitoring_email@jamkazam.com"
|
||||
config.send_user_match_mail_only_to_jamkazam_team = true
|
||||
config.signup_survey_url = "https://www.surveymonkey.com/r/WVBKLYL"
|
||||
config.signup_survey_cutoff_date = "2025-06-10"
|
||||
config.action_mailer.asset_host = config.action_controller.asset_host
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -126,4 +126,6 @@ SampleApp::Application.configure do
|
|||
config.action_controller.asset_host = 'http://www.jamkazam.local:3000'
|
||||
|
||||
config.send_user_match_mail_only_to_jamkazam_team = false
|
||||
config.signup_survey_url = "https://www.surveymonkey.com/r/WVBKLYL"
|
||||
config.signup_survey_cutoff_date = "2025-06-10"
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue