Module: Course::Survey::Response::TodoConcern

Extended by:
ActiveSupport::Concern
Included in:
Course::Survey::Response
Defined in:
app/models/concerns/course/survey/response/todo_concern.rb

Instance Method Summary collapse

Instance Method Details

#todoObject


10
11
12
13
14
15
# File 'app/models/concerns/course/survey/response/todo_concern.rb', line 10

def todo
  @todo ||= begin
    lesson_plan_item_id = survey.lesson_plan_item.id
    Course::LessonPlan::Todo.find_by(item_id: lesson_plan_item_id, user_id: creator_id)
  end
end