Module: Course::Assessment::TodoConcern

Extended by:
ActiveSupport::Concern
Included in:
Course::Assessment
Defined in:
app/models/concerns/course/assessment/todo_concern.rb

Instance Method Summary collapse

Instance Method Details

#can_user_start?(user) ⇒ Boolean


5
6
7
8
# File 'app/models/concerns/course/assessment/todo_concern.rb', line 5

def can_user_start?(user)
  course_user = user.course_users.find_by(course: course)
  conditions_satisfied_by?(course_user)
end