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.4.0 app/models/submission/question.rb
mumuki-laboratory-5.3.0 app/models/submission/question.rb
mumuki-laboratory-5.2.1 app/models/submission/question.rb
mumuki-laboratory-5.2.0 app/models/submission/question.rb
mumuki-laboratory-5.1.1 app/models/submission/question.rb
mumuki-laboratory-5.1.0 app/models/submission/question.rb
mumuki-laboratory-5.0.12 app/models/submission/question.rb
mumuki-laboratory-5.0.11 app/models/submission/question.rb
mumuki-laboratory-5.0.10 app/models/submission/question.rb
mumuki-laboratory-5.0.9 app/models/submission/question.rb
mumuki-laboratory-5.0.8 app/models/submission/question.rb
mumuki-laboratory-5.0.7 app/models/submission/question.rb
mumuki-laboratory-5.0.6 app/models/submission/question.rb
mumuki-laboratory-5.0.5 app/models/submission/question.rb
mumuki-laboratory-5.0.4 app/models/submission/question.rb
mumuki-laboratory-5.0.3 app/models/submission/question.rb
mumuki-laboratory-5.0.2 app/models/submission/question.rb
mumuki-laboratory-5.0.1 app/models/submission/question.rb
mumuki-laboratory-5.0.0 app/models/submission/question.rb