Sha256: 14bf1112c36a158a137d2d624c23a7139448a9d6de1322ea3f2bfe2b731d9d12
Contents?: true
Size: 484 Bytes
Versions: 13
Compression:
Stored size: 484 Bytes
Contents
# 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
Version data entries
13 entries across 13 versions & 1 rubygems