Permalink
Browse files

exception notifier update

  • Loading branch information...
1 parent fb09f03 commit 02bfdce7b5ab75b12ea051ea237ed0d11f82fd0d @redinger committed Apr 13, 2009
@@ -1 +1,4 @@
require "action_mailer"
+require "exception_notifier"
+require "exception_notifiable"
+require "exception_notifier_helper"
@@ -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 02bfdce

Please sign in to comment.