Code review related updates
This commit is contained in:
parent
575cbaa3e1
commit
582a368107
9 changed files with 75 additions and 66 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue