* feat: create a from_email_address and a reply_to_email_address * feat: update other mailers with the new SMTP email settings * test: update all spec files * fix: use the SMTP::Settings value * fix tests * spec: fix the comma * feat: tighten some logic * fix: test * fix tests * fix tests * final fix test commit * fix test * fix test * oops * feat: add a reply_to for Devise Mailer * chore: update the description * use a proc for reply_to * feat: update text * Update spec/mailers/digest_mailer_spec.rb Co-authored-by: Julianna Tetreault <32834804+juliannatetreault@users.noreply.github.com> * Update spec/mailers/verification_mailer_spec.rb Co-authored-by: Julianna Tetreault <32834804+juliannatetreault@users.noreply.github.com> * Update spec/mailers/shared_examples/renders_proper_email_headers.rb Co-authored-by: Julianna Tetreault <32834804+juliannatetreault@users.noreply.github.com> * refactor: move OPTIONS to a helper as its only being used in the view layer Co-authored-by: Julianna Tetreault <32834804+juliannatetreault@users.noreply.github.com>
19 lines
512 B
Ruby
19 lines
512 B
Ruby
module SettingsHelper
|
|
def user_experience_labels
|
|
[
|
|
I18n.t("helpers.settings_helper.novice"),
|
|
I18n.t("helpers.settings_helper.beginner"),
|
|
I18n.t("helpers.settings_helper.mid_level"),
|
|
I18n.t("helpers.settings_helper.advanced"),
|
|
I18n.t("helpers.settings_helper.expert"),
|
|
]
|
|
end
|
|
|
|
def user_experience_levels
|
|
%w[1 3 5 8 10]
|
|
end
|
|
|
|
def smpt_options
|
|
%i[user_name password address authentication domain port from_email_address reply_to_email_address].freeze
|
|
end
|
|
end
|