Files
nairobi/spec/mailers/previews/dashboard_mailer_preview.rb
Javi Martín e221c3cd1a Remove unused task to send dashboard notifications
This task was "temporarily" removed in commit 7b6619528. Since that was
done three and a half years ago, right after the dashboard was
introduced, I think it's time to make this "temporary" measure a bit
more permanent ;).
2022-10-02 16:52:59 +02:00

20 lines
683 B
Ruby

class DashboardMailerPreview < ActionMailer::Preview
def forward
proposal = Proposal.first
Dashboard::Mailer.forward(proposal)
end
# http://localhost:3000/rails/mailers/dashboard_mailer/new_actions_notification_on_create
def new_actions_notification_on_create
proposal = Proposal.first
Dashboard::Mailer.new_actions_notification_on_create(proposal)
end
# http://localhost:3000/rails/mailers/dashboard_mailer/new_actions_notification_on_published
def new_actions_notification_on_published
proposal = Proposal.first
new_actions = Dashboard::Action.all
Dashboard::Mailer.new_actions_notification_on_published(proposal, new_actions)
end
end