Sha256: 71959d7ddf05b469d7a9125886235aba3f8ae36f30672ca7388750c59247e675

Contents?: true

Size: 314 Bytes

Versions: 28

Compression:

Stored size: 314 Bytes

Contents

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

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

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
mumuki-laboratory-5.8.3 app/models/concerns/submittable/submittable.rb
mumuki-laboratory-5.8.1 app/models/concerns/submittable/submittable.rb
mumuki-laboratory-5.8.0 app/models/concerns/submittable/submittable.rb
mumuki-laboratory-5.7.0 app/models/concerns/submittable/submittable.rb
mumuki-laboratory-5.6.3 app/models/concerns/submittable/submittable.rb
mumuki-laboratory-5.6.2 app/models/concerns/submittable/submittable.rb
mumuki-laboratory-5.6.1 app/models/concerns/submittable/submittable.rb
mumuki-laboratory-5.6.0 app/models/concerns/submittable/submittable.rb
mumuki-laboratory-5.5.0 app/models/concerns/submittable/submittable.rb
mumuki-laboratory-5.4.0 app/models/concerns/submittable/submittable.rb
mumuki-laboratory-5.3.0 app/models/concerns/submittable/submittable.rb
mumuki-laboratory-5.2.1 app/models/concerns/submittable/submittable.rb
mumuki-laboratory-5.2.0 app/models/concerns/submittable/submittable.rb
mumuki-laboratory-5.1.1 app/models/concerns/submittable/submittable.rb
mumuki-laboratory-5.1.0 app/models/concerns/submittable/submittable.rb
mumuki-laboratory-5.0.12 app/models/concerns/submittable/submittable.rb
mumuki-laboratory-5.0.11 app/models/concerns/submittable/submittable.rb
mumuki-laboratory-5.0.10 app/models/concerns/submittable/submittable.rb
mumuki-laboratory-5.0.9 app/models/concerns/submittable/submittable.rb
mumuki-laboratory-5.0.8 app/models/concerns/submittable/submittable.rb