Implement AR#inspect using ParameterFilter #34208
I don't immediately have a better suggestion, and it doesn't need to block us merging this, but I'm a little uncomfortable with the fact it's called ParameterFilter now that it's being used to filter things that.. aren't parameters (except in the broadest possible "input value for code" sense of the word).
Does anyone else have feelings on that?
AR instance support `filter_parameters` since rails#33756. Though Regex or Proc is valid as `filter_parameters`, they are not supported as AR#inspect. I also add :mask option and #filter_params to `ActiveSupport::ParameterFilter#new` to implement this.
As for the naming of
I came up with candidate like
That said, I feel changing class name is not the scope of this PR and inclined to just merge this and open new PR about discussing naming.