I need to refactor this private method. Codeclimate is giving me a error msj because the line of the params is too long. How can i refactor it?
def base_plan_params
params[:base_plan][:debit_date_attributes]&.merge!(
account_id: current_account.id,
_destroy: params[:base_plan][:debit_date_attributes][:date_type].blank?,
)
params.require(:base_plan).permit(
:code,
:cover,
:name,
:products,
:pricing_model,
:metered,
debit_date_attributes: %i[id account_id date_type value _destroy],
)
end```