non-summary question edit bug fix

This commit is contained in:
Mark Moser
2016-09-07 17:45:50 -05:00
parent 1ded44610b
commit eb2eb65219
2 changed files with 9 additions and 3 deletions

View File

@ -7,4 +7,12 @@ class Answer < ApplicationRecord
validates :candidate_id, presence: true
validates :question_id, presence: true
validates :answer, answer_format: true
# Throw away attributes
# convenience for form manipulation
def answer_array=(val); end
def answer_hash=(val); end
def answer_id=(val); end
end