class ActionController::Parameters

def new_instance_with_inherited_permitted_status(hash)

def new_instance_with_inherited_permitted_status(hash)
  self.class.new(hash, @logging_context).tap do |new_instance|
    new_instance.permitted = @permitted
  end
end