Created
May 8, 2014 10:11
-
-
Save bogdan/c010c0a4d9986f4bf5e7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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