@ -6,7 +6,7 @@ class AnswerFormatValidator < ActiveModel::EachValidator
|
||||
private
|
||||
|
||||
def text record, attribute, value
|
||||
clean_val = value.to_s.strip
|
||||
clean_val = value.to_s.strip.delete("\r")
|
||||
return if clean_val.length.between?(1, 1000)
|
||||
|
||||
if clean_val.blank?
|
||||
|
Reference in New Issue
Block a user