Validate uniqueness manually all the time

This commit is contained in:
Martin Lensment 2014-10-01 10:42:49 +03:00
parent 0ab1e29a53
commit 3f8f5cc4cd
5 changed files with 17 additions and 14 deletions

View file

@ -48,6 +48,8 @@ module Epp::Common
# for debugging
@errors << { code: '1', msg: 'handle_errors was executed when there were actually no errors' } if @errors.blank?
@errors.uniq!
render '/epp/error'
end