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 ;).
20 lines
683 B
Ruby
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
|