Skip to content

Commit b49281c

Browse files
committed
Fix task list error
1 parent 5edc63f commit b49281c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/models/client.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ class Client < ActiveRecord::Base
44
belongs_to :admin
55

66
def task_list
7-
tasks = self.tasks rescue nil
7+
tasks = self.tasks
88
task_list = "There are #{tasks.size} tasks to perform today."
99
if tasks.size > 0
1010
tasks.each_with_index do |task, index|
11-
task_list << "#{index+1}, #{task}."
11+
task_list << "Task #{index+1}, #{task.name}. "
1212
end
1313
end
1414
task_list

0 commit comments

Comments
 (0)