admin_mailer_preview.rb 749 B

123456789101112131415161718
  1. # Preview all emails at http://localhost:3000/rails/mailers/admin_mailer
  2. class AdminMailerPreview < ActionMailer::Preview
  3. # Preview this email at http://localhost:3000/rails/mailers/admin_mailer/new_pending_account
  4. def new_pending_account
  5. AdminMailer.new_pending_account(Account.first, User.pending.first)
  6. end
  7. # Preview this email at http://localhost:3000/rails/mailers/admin_mailer/new_trends
  8. def new_trends
  9. AdminMailer.new_trends(Account.first, PreviewCard.joins(:trend).limit(3), Tag.limit(3), Status.joins(:trend).where(reblog_of_id: nil).limit(3))
  10. end
  11. # Preview this email at http://localhost:3000/rails/mailers/admin_mailer/new_appeal
  12. def new_appeal
  13. AdminMailer.new_appeal(Account.first, Appeal.first)
  14. end
  15. end