public
Description: Exception Notifier Plugin for Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/exception_notification.git
working around that filter_parameters is protected now

Signed-off-by: Michael Koziarski <michael@koziarski.com>
trevorturk (author)
Thu Jun 05 09:24:14 -0700 2008
NZKoz (committer)
Sat Jun 07 21:26:13 -0700 2008
commit  019b0de35a328c78204adc0fe93e942f011e0002
tree    0758d7df2db460d4e6298f3e901c01e9b9b5afbd
parent  dfd2129f28206d2401a8dc286748d6da16af79dd
...
67
68
69
70
 
71
72
73
74
75
76
 
77
78
...
67
68
69
 
70
71
72
73
74
75
 
76
77
78
0
@@ -67,12 +67,12 @@ module ExceptionNotifierHelper
0
   end
0
   
0
   def filter_sensitive_post_data_parameters(parameters)
0
-    exclude_raw_post_parameters? ? @controller.filter_parameters(parameters) : parameters
0
+    exclude_raw_post_parameters? ? @controller.send!(:filter_parameters, parameters) : parameters
0
   end
0
   
0
   def filter_sensitive_post_data_from_env(env_key, env_value)
0
     return env_value unless exclude_raw_post_parameters?
0
     return PARAM_FILTER_REPLACEMENT if (env_key =~ /RAW_POST_DATA/i)
0
-    return @controller.filter_parameters({env_key => env_value}).values[0]
0
+    return @controller.send!(:filter_parameters, {env_key => env_value}).values[0]
0
   end
0
 end

Comments

trevorturk Sun Jun 08 07:44:45 -0700 2008

Thanks for getting this in. I’m going to kill my unnecessary fork now :)

duff Mon Oct 06 12:57:15 -0700 2008

For some reason, send! is coming up as an undefined method for me. Am I doing something wrong? Perhaps I need a different Rails revision? I’m about 2 week behind edge. If I call just send without the bang, it seems to work.

Thanks!

duff Tue Oct 07 09:29:10 -0700 2008

Yay! thanks.

sxross Wed Jan 21 09:37:34 -0800 2009

Thanks for this.