Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Notifications < ActionMailer::Base
- def new_referral(referral)
- subject 'Notifications#referral'
- recipients referral.email
- from 'somewhere@someone.com'
- body :referral => referral
- if referral.super?
- template "super_referral"
- else
- template "normal_referral"
- end
- end
- end
Add Comment
Please, Sign In to add comment