|
|
@ -118,7 +118,7 @@ private |
|
|
|
|
|
|
|
|
|
|
|
answer = case_log.send(condition.keys.first) |
|
|
|
answer = case_log.send(condition.keys.first) |
|
|
|
if answer == condition.values.first |
|
|
|
if answer == condition.values.first |
|
|
|
label = ANSWER_SUFFIX_LABELS.has_key?(answer) ? ANSWER_SUFFIX_LABELS[answer] : answer |
|
|
|
label = ANSWER_SUFFIX_LABELS.key?(answer) ? ANSWER_SUFFIX_LABELS[answer] : answer |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
label |
|
|
|
label |
|
|
@ -150,6 +150,6 @@ private |
|
|
|
ANSWER_SUFFIX_LABELS = { |
|
|
|
ANSWER_SUFFIX_LABELS = { |
|
|
|
"Weekly" => " every week", |
|
|
|
"Weekly" => " every week", |
|
|
|
"Monthly" => " every month", |
|
|
|
"Monthly" => " every month", |
|
|
|
"Yearly" => " every year" |
|
|
|
"Yearly" => " every year", |
|
|
|
}.freeze |
|
|
|
}.freeze |
|
|
|
end |
|
|
|
end |
|
|
|