Sha256: 43b202b2b4643ed81694d0f4cf3b54605f1b28f14f9a879eab74032a72faa477

Contents?: true

Size: 318 Bytes

Versions: 64

Compression:

Stored size: 318 Bytes

Contents

module Submittable
  def submit!(user, submission)
    find_assignment_and_submit!(user, submission).last
  end

  def find_assignment_and_submit!(user, submission)
    assignment = assignment_for user
    results = user.run_submission! submission, assignment, evaluation_class.new
    [assignment, results]
  end
end

Version data entries

64 entries across 64 versions & 2 rubygems

Version Path
mumuki-domain-9.23.0 app/models/concerns/submittable/submittable.rb
mumuki-domain-9.22.1 app/models/concerns/submittable/submittable.rb
mumuki-domain-9.22.0 app/models/concerns/submittable/submittable.rb
mumuki-domain-9.21.0 app/models/concerns/submittable/submittable.rb
mumuki-domain-9.20.0 app/models/concerns/submittable/submittable.rb
mumuki-domain-9.19.0 app/models/concerns/submittable/submittable.rb
mumuki-domain-9.18.0 app/models/concerns/submittable/submittable.rb
mumuki-domain-9.17.0 app/models/concerns/submittable/submittable.rb
mumuki-domain-9.16.0 app/models/concerns/submittable/submittable.rb
mumuki-domain-9.15.0 app/models/concerns/submittable/submittable.rb
mumuki-domain-9.14.1 app/models/concerns/submittable/submittable.rb
mumuki-domain-9.14.0 app/models/concerns/submittable/submittable.rb
mumuki-domain-9.13.1 app/models/concerns/submittable/submittable.rb
mumuki-domain-9.13.0 app/models/concerns/submittable/submittable.rb
mumuki-domain-9.12.0 app/models/concerns/submittable/submittable.rb
mumuki-domain-9.11.0 app/models/concerns/submittable/submittable.rb
mumuki-domain-9.10.0 app/models/concerns/submittable/submittable.rb
mumuki-domain-9.9.0 app/models/concerns/submittable/submittable.rb
mumuki-domain-9.8.1 app/models/concerns/submittable/submittable.rb
mumuki-domain-9.8.0 app/models/concerns/submittable/submittable.rb