Module: Questionable

Included in:
Exercise
Defined in:
app/models/concerns/submittable/questionable.rb

Instance Method Summary collapse

Instance Method Details

#submit_question!(user, question) ⇒ Object



2
3
4
5
# File 'app/models/concerns/submittable/questionable.rb', line 2

def submit_question!(user, question)
  assignment, _ = find_assignment_and_submit! user, Mumuki::Domain::Submission::Question.new
  assignment.send_question!(question)
end