update Rails::Railtie::Configuration and ActionDispatch::Response#respond_to? to accept include_private argument
Merge pull request #15898 from arthurnn/backport_11912

Backport #11912 fix to 4-0-stable