Sha256: bd9b6ec475a4685f23bdb24421ce1a8f1026e403da6ef60f8033dd52db95b5af
Contents?: true
Size: 1.13 KB
Versions: 2
Compression:
Stored size: 1.13 KB
Contents
require 'peoplefinder' class Peoplefinder::ReminderMailer < ActionMailer::Base include Peoplefinder::FeatureHelper def inadequate_profile(person) @person = person @edit_url = possibly_tokenized_edit_person_url(person) mail to: @person.email end def information_request(information_request) @person = information_request.recipient @edit_url = possibly_tokenized_edit_person_url(@person) @message = information_request.message mail to: @person.email end def reported_profile(reported_profile) @subject = reported_profile.subject @notifier = reported_profile.notifier @reason_for_reporting = reported_profile.reason_for_reporting @additional_details = reported_profile.additional_details mail to: reported_profile.recipient_email end private def tokenized_edit_person_url(person) token = Peoplefinder::Token.for_person(person) token_url(token, desired_path: edit_person_path(person)) end def possibly_tokenized_edit_person_url(person) if feature_enabled?('token_auth') tokenized_edit_person_url(person) else edit_person_url(person) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
peoplefinder-0.1.1 | app/mailers/peoplefinder/reminder_mailer.rb |
peoplefinder-0.1.0 | app/mailers/peoplefinder/reminder_mailer.rb |