Fix CC issues

This commit is contained in:
Karl Erik Õunapuu 2021-01-28 12:47:06 +02:00
parent 7c35083a8b
commit dd8d4c1085
No known key found for this signature in database
GPG key ID: C9DD647298A34764
6 changed files with 12 additions and 12 deletions

View file

@ -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