8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# File 'app/notifications/cats/core/round_plan_notification.rb', line 8
def message
round_plan = params[:round_plan]
plan = round_plan.plan
title = "Round Plan - #{round_plan.reference_no}"
date = Date.today
body = <<~BODY
A round plan with the following specifications needs your approval:
Reference No. = #{round_plan.reference_no}
Status = #{round_plan.status}
Region = #{round_plan.region.name}
Rounds = #{round_plan.rounds}
Program = #{plan.program.name}
Year = #{plan.year}
Season = #{plan.season}
BODY
{title: title, date: date, body: body}
end
|