mumuki/mumuki-domain

View on GitHub
app/models/concerns/submittable/questionable.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Questionable
  def submit_question!(user, question)
    assignment, _ = find_assignment_and_submit! user, Mumuki::Domain::Submission::Question.new
    assignment.send_question!(question)
  end
end