Sha256: 28d5754efc01bbafd00d3503d34e7ec33fd4542769acb8b319330958a9be27c1
Contents?: true
Size: 524 Bytes
Versions: 9
Compression:
Stored size: 524 Bytes
Contents
if Object.const_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
9 entries across 9 versions & 1 rubygems