This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The filter_parameter_logging method, used to filter request parameters | |
# (such as passwords) from the log, defines a protected method called | |
# filter_parameter when called. Its existence is later tested using | |
# respond_to?, without the include_private parameter. Due to the respond_to? | |
# behavior change, the method existence is never detected, and parameter | |
# filtering stops working. | |
require 'action_controller' | |
module ParameterFilterPatch | |
def respond_to?(method, include_private = false) |