mirror of
https://github.com/internetee/registry.git
synced 2025-06-06 20:55:44 +02:00
REPP: Show error when invalid ident format submitted
This commit is contained in:
parent
3d0150076c
commit
03db562c77
4 changed files with 9 additions and 4 deletions
|
@ -112,7 +112,7 @@ module Repp
|
|||
end
|
||||
|
||||
def contact_ident_params(required: true)
|
||||
if required || !params[:contact][:ident].nil?
|
||||
if required
|
||||
params.require(:contact).require(:ident).require(%i[ident ident_type ident_country_code])
|
||||
params.require(:contact).require(:ident).permit(:ident, :ident_type, :ident_country_code)
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue