method

permit_array_of_scalars

rails latest stable - Class: ActionController::Parameters

Method not available on this version

This method is only available on newer versions. The first available version (v8.0.0) is shown here.

permit_array_of_scalars(value)
private

No documentation available.

# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 1378
      def permit_array_of_scalars(value)
        value if value.is_a?(Array) && value.all? { |element| permitted_scalar?(element) }
      end