Permalink
Browse files

Get rid of Object#send! that has been removed from Ruby 1.9 and Activ…

…eSupport.

Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
  • Loading branch information...
1 parent 019b0de commit ed0b914ff493f9137abc4f68ee08e3c3cd7a3211 @chuyeow chuyeow committed with lifo Sep 5, 2008
Showing with 2 additions and 2 deletions.
  1. +2 −2 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.send!(: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.send!(: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 ed0b914

Please sign in to comment.