method

call

rails latest stable - Class: ActiveSupport::ParameterFilter::CompiledFilter

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v7.0.0) is shown here.

call(params, parents = [], original_params = params)
public

No documentation available.

# File activesupport/lib/active_support/parameter_filter.rb, line 103
      def call(params, parents = [], original_params = params)
        filtered_params = params.class.new

        params.each do |key, value|
          filtered_params[key] = value_for_key(key, value, parents, original_params)
        end

        filtered_params
      end