non-summary question edit bug fix
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user