Code review related updates

This commit is contained in:
Guillaume Lazzara 2016-06-30 10:24:01 +02:00
parent 575cbaa3e1
commit 582a368107
9 changed files with 75 additions and 66 deletions

View file

@ -9,8 +9,4 @@ class ProcedurePathFormatValidator < ActiveModel::Validator
record.errors[:path] << "Path invalide" unless path_regex.match(record.path)
end
def validate_string(path)
return false if path.blank?
path_regex.match(path)
end
end