Skip to content

Commit

Permalink
Get rid of Object#send! that has been removed from Ruby 1.9 and Activ…
Browse files Browse the repository at this point in the history
…eSupport.

Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
  • Loading branch information
chuyeow authored and lifo committed Oct 7, 2008
1 parent 019b0de commit ed0b914
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/exception_notifier_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.