Sha256: 6463627896004c7347dfb9f38dbd56ee33dfc2bf9c37ddda536b486ceafd3ade
Contents?: true
Size: 540 Bytes
Versions: 24
Compression:
Stored size: 540 Bytes
Contents
# frozen_string_literal: true if defined?(ActionController::Parameters) 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 end
Version data entries
24 entries across 24 versions & 1 rubygems