# frozen_string_literal: true always_permitted_parameters = %w{id} if ::ActionController::Parameters.respond_to?(:always_permitted_parameters) ::ActionController::Parameters .always_permitted_parameters += always_permitted_parameters else always_permitted_parameters.each do |always_permitted_parameter| ::ActionController::Parameters::NEVER_UNPERMITTED_PARAMS << always_permitted_parameter end end ::ActionController::Parameters.action_on_unpermitted_parameters = :raise