mirror of
https://github.com/internetee/registry.git
synced 2025-06-11 07:04:47 +02:00
Fix CC issues
This commit is contained in:
parent
7c35083a8b
commit
dd8d4c1085
6 changed files with 12 additions and 12 deletions
|
@ -38,7 +38,7 @@ module Repp
|
|||
end
|
||||
|
||||
def cta(action = 'add')
|
||||
contact_create_params[:contacts].each { |c| c[:action] = action }
|
||||
params[:contacts].each { |c| c[:action] = action }
|
||||
action = Actions::DomainUpdate.new(@domain, contact_create_params, current_user)
|
||||
|
||||
# rubocop:disable Style/AndOr
|
||||
|
@ -76,7 +76,7 @@ module Repp
|
|||
private
|
||||
|
||||
def contact_create_params
|
||||
params.permit!
|
||||
params.permit(:domain_id, contacts: [%i[action code type]])
|
||||
end
|
||||
|
||||
def contact_params
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue