app/mailers/mail_preview.rb in hackathon_manager-0.4.0 vs app/mailers/mail_preview.rb in hackathon_manager-0.4.1
- old
+ new
@@ -1,9 +1,9 @@
if defined?(ActionMailer::Preview)
class MailPreview < ActionMailer::Preview
def application_confirmation_email
questionnaire = Questionnaire.first
- Mailer.application_confirmation_email(questionnaire)
+ Mailer.application_confirmation_email(questionnaire.id)
end
def rsvp_confirmation_email
Mailer.rsvp_confirmation_email(Questionnaire.first.id)
end