Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
def self.email_recipient(view, translator)
case view.to_sym
when :notifier_offers_email
translator.person
when :notifier_offers_share_via_email, :notifier_offers_share_via_email_reminder
translator.person
when :notifier_rewards_origins_referrer_confirmation
translator.person
when :notifier_rewards_origins_referred_confirmation
translator.person
when :notifier_rewards_paid
translator.person
when :notifier_rewards_voided
translator.person
when :notifier_offers_claim
translator.person
when :notifier_offers_referrer_status_email
translator.person
when :notifier_rewards_payment_payee_notification
translator.person
else
raise "Unknown view #{view_name}"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment