expertiza/expertiza

View on GitHub
app/models/quiz_response.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
class QuizResponse < Response
  belongs_to :assignment
  belongs_to :questionnaire
  belongs_to :question
  belongs_to :participant
  belongs_to :response_map, foreign_key: :map_id, inverse_of: false
  belongs_to :quiz_response_map, foreign_key: :map_id, inverse_of: false

  # validates :response, :presence => true
end