Browse files

working around that filter_parameters is protected now

Signed-off-by: Michael Koziarski <michael@koziarski.com>
  • Loading branch information...
1 parent dfd2129 commit 019b0de35a328c78204adc0fe93e942f011e0002 Trevor Turk committed with NZKoz Jun 5, 2008
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/exception_notifier_helper.rb
View
4 lib/exception_notifier_helper.rb
@@ -67,12 +67,12 @@ def exclude_raw_post_parameters?
end
def filter_sensitive_post_data_parameters(parameters)
- exclude_raw_post_parameters? ? @controller.filter_parameters(parameters) : parameters
+ exclude_raw_post_parameters? ? @controller.send!(:filter_parameters, parameters) : parameters
end
def filter_sensitive_post_data_from_env(env_key, env_value)
return env_value unless exclude_raw_post_parameters?
return PARAM_FILTER_REPLACEMENT if (env_key =~ /RAW_POST_DATA/i)
- return @controller.filter_parameters({env_key => env_value}).values[0]
+ return @controller.send!(:filter_parameters, {env_key => env_value}).values[0]
end
end

0 comments on commit 019b0de

Please sign in to comment.