Flowdock
method

permit_any_in_array

Importance_0
Ruby on Rails latest stable (v5.2.3) - 0 notes - Class: Parameters
permit_any_in_array(array) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 980
      def permit_any_in_array(array)
        [].tap do |sanitized|
          array.each do |element|
            case element
            when ->(e) { permitted_scalar?(e) }
              sanitized << element
            when Parameters
              sanitized << permit_any_in_parameters(element)
            else
              # Filter this one out.
            end
          end
        end
      end
Register or log in to add new notes.