mirror of
https://github.com/internetee/registry.git
synced 2025-06-07 05:05:45 +02:00
Fix contact create with predefined code
This commit is contained in:
parent
7fd31b7004
commit
8bc064a0b8
3 changed files with 3 additions and 2 deletions
|
@ -104,7 +104,7 @@ module Repp
|
|||
|
||||
def contact_create_params(required: true)
|
||||
params.require(:contact).require(%i[name email phone]) if required
|
||||
params.require(:contact).permit(:name, :email, :phone)
|
||||
params.require(:contact).permit(:name, :email, :phone, :code)
|
||||
end
|
||||
|
||||
def contact_ident_params(required: true)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue