Sha256: baabf7503aa8f0e8ce7ab459fe7442fd866e683845ca2e9329b2026ad63a5761

Contents?: true

Size: 290 Bytes

Versions: 39

Compression:

Stored size: 290 Bytes

Contents

class Question < Submission
  def run!(assignment, evaluation)
    return [assignment, nil] unless assignment.new_record?
    super
  end

  def save_submission!(assignment)
    assignment.persist_submission! self
  end

  def try_evaluate!(*)
    {status: :pending, result: nil}
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
mumuki-laboratory-5.13.0 app/models/submission/question.rb
mumuki-laboratory-5.12.1 app/models/submission/question.rb
mumuki-laboratory-5.12.0 app/models/submission/question.rb
mumuki-laboratory-5.11.0 app/models/submission/question.rb
mumuki-laboratory-5.10.4 app/models/submission/question.rb
mumuki-laboratory-5.10.3 app/models/submission/question.rb
mumuki-laboratory-5.10.2 app/models/submission/question.rb
mumuki-laboratory-5.10.1 app/models/submission/question.rb
mumuki-laboratory-5.10.0 app/models/submission/question.rb
mumuki-laboratory-5.9.1 app/models/submission/question.rb
mumuki-laboratory-5.9.0 app/models/submission/question.rb
mumuki-laboratory-5.8.3 app/models/submission/question.rb
mumuki-laboratory-5.8.1 app/models/submission/question.rb
mumuki-laboratory-5.8.0 app/models/submission/question.rb
mumuki-laboratory-5.7.0 app/models/submission/question.rb
mumuki-laboratory-5.6.3 app/models/submission/question.rb
mumuki-laboratory-5.6.2 app/models/submission/question.rb
mumuki-laboratory-5.6.1 app/models/submission/question.rb
mumuki-laboratory-5.6.0 app/models/submission/question.rb
mumuki-laboratory-5.5.0 app/models/submission/question.rb