method

convert_value_to_parameters

Importance_0
v7.0.0 - Show latest stable - 0 notes - Class: Parameters
convert_value_to_parameters(value) 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 961
      def convert_value_to_parameters(value)
        case value
        when Array
          return value if converted_arrays.member?(value)
          converted = value.map { |_| convert_value_to_parameters(_) }
          converted_arrays << converted.dup
          converted
        when Hash
          self.class.new(value)
        else
          value
        end
      end
Register or log in to add new notes.